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 reply to Re^8: Number functions.. primes (ugly code runs faster)
by Anonymous Monk
in thread Number functions I have lying around
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |