Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,7 @@
func is_perfect(n) {
n.sigma == 2*n
}
for n in (1..10000) {
say n if is_perfect(n)
}

View file

@ -0,0 +1,14 @@
func is_even_perfect(n) {
var square = (8*n + 1)
square.is_square || return false
var t = ((square.isqrt + 1) / 2)
t.is_smooth(2) || return false
t-1 -> is_prime
}
for n in (1..10000) {
say n if is_even_perfect(n)
}