Jump to content

Count in factors: Difference between revisions

m
Line 2,135:
return primes[idx]
 
for x in 1 .. < int32.high.int:
stdout.write x, " = "
var n = x
var first = 1
 
for i in 0 .. < int32.high:
let p = getPrime(i)
while n mod p == 0:
Cookies help us deliver our services. By using our services, you agree to our use of cookies.