from p7 import isPrime N = 1000000 print sum(p for p in range(2, N) if isPrime(p))