2014-03-20から1日間の記事一覧
Problem 10 The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. 訳 10以下の素数の和は2+3+5+7=17である。200万以下の全ての素数の和を求めよ。 コード i = 3 prime = [2] flag = 0 while(1): for j…
Problem 10 The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. 訳 10以下の素数の和は2+3+5+7=17である。200万以下の全ての素数の和を求めよ。 コード i = 3 prime = [2] flag = 0 while(1): for j…