Jump to content

Self numbers: Difference between revisions

m
Corrected title.
m (Corrected title.)
Line 1,182:
Total time: 7 seconds, 903 milliseconds, 752 microseconds, and 944 nanoseconds</pre>
 
===Improved sievedsieve===
{{trans|Pascal}}
Using bit indexing is very useful here as with byte indexing, the sieve needs 10GB. On a computer with only 8 GB , as this is the case of the laptop I use to run these programs, it fails to execute (I have a very small swap and don’t want to use the swap anyway). With bit indexing, the sieve needs only 1,25GB which is more reasonable.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.