desguar += and -=
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user