Exemple #1
0
# What is the largest prime factor of the number 600851475143?

import primes

plist = primes.genprimelistse(10000)
factorlist = primes.listfactors(600851475143, plist)
print factorlist
Exemple #2
0
# Find the sum of all the primes below two million.

import primes

print sum(primes.genprimelistse(2000000))