摘要:
Summation of primesProblem 10The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum of all the primes below two million.The code resemble :import mathlimit = 2000000crosslimit = int(math.sqrt(limit))#sieve = [False] * limitsieve = [False for i in range(0, limit)]for i in range(4, limit + 阅读全文