摘要:
Sieve of Eratosthenesis a simple, ancientalgorithmfor finding allprime numbersup to any given limit.///SieveofEratosthenes///http://upload.wikimedia.org/wikipedia/commons/b/b9/Sieve_of_Eratosthenes_animation.gif///内部使用byte数组存放标志位,所以不适合非常大的素数范围。视内存限制。letPrimesBelowSOEx=letmutableret=[]letflagarr=Arr. 阅读全文
posted @ 2012-01-29 16:07
江振
阅读(188)
评论(0)
推荐(0)
浙公网安备 33010602011771号