所有小於等於sqrt(x) 的質數,刪掉這些質數的倍數,就能刪掉所有合數了。 bool prime[20000000];; void eratosthenes(); {; for (int i=0; i<20000000; i++) ...
確定! 回上一頁