def run(): key = 10001 i = 1 P = eratosthenes(key * i) while len(P) < key: i *= 2 P = eratosthenes(key * i) print P[key - 1]
def run(): P = eratosthenes(6500) # 6500 by trial/error t = TriangleNumberGenerator() while True: n = t.next() if ndivisors(n, P) > 500: print n break
def run(): print sum(eratosthenes(2000000))