small fixes
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
func num_divisors[n: I64] : I64
|
||||
let end: I64 = Math.isqrt(n)
|
||||
|
||||
let result: I64 = 0
|
||||
let out: I64 = 0
|
||||
for i in 1..end+1
|
||||
if n % i == 0
|
||||
result = result + 2
|
||||
out = out + 2
|
||||
|
||||
if end * end == n
|
||||
result = result - 1
|
||||
return result
|
||||
out = out - 1
|
||||
return out
|
||||
|
||||
func main[] : I64
|
||||
let n: I64 = 0
|
||||
|
||||
Reference in New Issue
Block a user