def p35(): T = lc.sieve_of_eratosthenes(1000000) S = [sorted(str(p)) for p in T] C = [] for s in S: if S.count(s) == len(s): C.append(str(s)) print sorted(str(c) for c in C) print len(C)
def p10(): print sum(lc.sieve_of_eratosthenes(2*10**6))
def p3(): print lc.sieve_of_eratosthenes(600851475143)[-1:]