摘要: 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 + 阅读全文
posted @ 2013-12-17 15:25 tianxiaozz 阅读(188) 评论(0) 推荐(0) 编辑