Jump to content

Talk:Sieve of Eratosthenes: Difference between revisions

Line 92:
}</lang>
 
The problem here is the concept of removing values. Even the "optimisation" of filling nums with odd values is no optimisation at all. tryingTrying to sieve 40004 for the posted algorithm takes around 3.292s ("optimised") while the algorithm above takes 0.006s and the bitset sieve clocks at 0.008s. Thanks
--[[User:Xelamitchell|xelamitchell]]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.