desguar += and -=

This commit is contained in:
2026-06-06 18:53:11 +02:00
parent 535364931e
commit 22874181cd
32 changed files with 185 additions and 146 deletions

View File

@@ -4,18 +4,18 @@ func num_divisors[n: i64] : i64
out := 0
for i in 1..end+1
if n % i == 0
out = out + 2
out += 2
if end * end == n
out = out - 1
out -= 1
return out
func main[] : i64
n := 0
i := 1
while true
n = n + i
n += i
if num_divisors(n) > 500
io.println_i64(n)
break
i = i + 1
i += 1