摘要:
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum of all the primes below two million.#include
#include
#include
#include
#include
#include #define N 2000000 bool prim(int n)
{ int i; for(i=2; i*i<=n; i++) { if(n%i==0) return false; } return true;
} int main()
{ int i;
... 阅读全文
posted @ 2013-07-24 00:06
cpoint
阅读(226)
评论(0)
推荐(0)

浙公网安备 33010602011771号