Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Number functions I have lying around

by karlgoethebier (Abbot)
on Mar 31, 2015 at 22:03 UTC ( [id://1122067]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Number functions I have lying around
in thread Number functions I have lying around

"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»

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1122067]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-19 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found