Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^8: Number functions.. primes (ugly code runs faster)by Anonymous Monk |
on May 08, 2015 at 01:20 UTC ( [id://1126043]=note: print w/replies, xml ) | Need Help?? |
Regarding memory use: the result array footprint probably outweighs the sieve for limits up to 1014. Re: code. m//gogo is the sole bit of artistic liberty (or wishful thinking) and can be shortened to just //g. And sure, you're welcome to it, to work on it or repost it. An anonymonk couldn't say no, anyhow.
In Section
Cool Uses for Perl
|
|