Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Calculate primes!

by PERLscienceman (Curate)
on May 06, 2004 at 02:03 UTC ( #350963=note: print w/ replies, xml ) Need Help??


in reply to Calculate primes!

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:

C:\>primes 4 50 5 7 11 13 17 19 23 29 31 37 41 43 47
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)


Comment on Re: Calculate primes!
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-12-25 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls