Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • If you're after a fast way of checking for prime numbers from Perl, then it's hard to go past PARI/GP [], which has a Math::Pari [] interface. With the generation of large primes, strong random numbers, support for integers up to (2^29)^29 out of the box, and a host of other math functions, Pari is essentially crack for number theorists. It provides both isprime() [] and ispseudoprime() [] functions.

    There's also a brief mention of using Math::Pari for primality testing on perlmonks [].