Math::Prime::Util

Utilities related to prime numbers, including fast generators / sievers
Download

Math::Prime::Util Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Dana Jacobsen
  • Publisher web site:
  • http://search.cpan.org/~danaj/

Math::Prime::Util Tags


Math::Prime::Util Description

Math::Prime::Util is a set of utilities related to prime numbers. These include multiple sieving methods, is_prime, prime_count, nth_prime, approximations and bounds for the prime_count and nth prime, next_prime and prev_prime, factoring utilities, and more.The default sieving and factoring are intended to be the fastest on CPAN, including Math::Prime::XS, Math::Prime::FastSieve, and Math::Factor::XS.SYNOPSIS use Math::Prime::Util qw/primes/; # Get a big array reference of many primes my $aref = primes( 100_000_000 ); # All the primes between 5k and 10k inclusive my $aref = primes( 5_000, 10_000 );Product's homepage


Math::Prime::Util Related Software