Don't ask to ask, just ask | |
PerlMonks |
Re: Calculate primes!by PERLscienceman (Curate) |
on May 06, 2004 at 02:03 UTC ( [id://350963]=note: print w/replies, xml ) | Need Help?? |
Cool Script Indeed.... you may also want to have a look at Bundle::PPT, "Perl Power Tools", also simply known as ppt if you are going to install from the ActiveState PPM on Win32. It contains a utility called primes. I installed the ppt package on Windows XP with ActivePerl 5.8.1 Build 807 and decided to give it a whirl.
Command line usage: primes start stop I tried it out and got the following results: UPDATE: After exploring CPAN some more I found two additional modules which overtly caught my eye: Math::Prime::Simple Math::Big (contains a subroutine for calculating primes)
In Section
Code Catacombs
|
|