"Eratosthenes was a clever chap"
I never met him. But another chap wrote some kind of shortcut:
use Math::Prime::XS qw( sieve_primes ); my @primes = sieve_primes(10_000);
I'm to tired to write the benchmarks...
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
In reply to Re^4: Number functions I have lying around
by karlgoethebier
in thread Number functions I have lying around
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |