2017-05-14から1日間の記事一覧
問題 Problem 10:Summation of primes The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum of all the primes below two million. 解答例 def sieveEratosthenes(num): isPrime = [True] * (num + 1) isPrime[0] = False isPrime[1] = Fal…