powered by
factors(n)
n
n == prod(factors(n))
isprime
primes
factors(1002001) # 7 7 11 11 13 13 factors(65537) # is prime ## Euler's calculation factors(2^32 + 1) # 641 6700417
Run the code above in your browser using DataLab