Changes for version 0.40 - 2014-04-21
- ADDED
- random_shawe_taylor_prime FIPS 186-4 random proven prime
- random_shawe_taylor_prime_with_cert as above with certificate
- twin_prime_count counts twin primes in range
- twin_prime_count_approx fast approximation to Pi_2(n)
- nth_twin_prime returns the nth twin prime
- nth_twin_prime_approx estimates the nth twin prime
- FUNCTIONALITY AND PERFORMANCE
- Update PP Frobenius-Underwood test.
- Speed up exp_mangoldt.
- nth_prime_approx uses inverse RiemannR in XS code for better accuracy. Cippola 1902 is still used for PP and large values, with a slightly more accurate third order correction.
- Tighten nth_prime_lower and nth_prime_upper for very small values.
- Fix legendre_phi when given tiny x and large a (odd test case). Some speedups for huge a, from R. Andrew Ohana.
- Ranged totient is slightly faster with start of 0.
- Fix random_prime with a bigint prime high value.
Modules
Utilities related to prime numbers, including fast sieves and factoring
Elliptic curve operations for affine points
Elliptic curve operations for projective points
An auto-free object for Math::Prime::Util
Pure Perl version of Math::Prime::Util
PP front end for Math::Prime::Util
Primality proofs and certificates
A tied array for primes
An object iterator for primes
Generate random primes
Perl Big Float versions of Riemann Zeta and R functions
Provides
in lib/Math/Prime/Util/PPFE.pm
Examples
- examples/README
- examples/abundant.pl
- examples/find_mr_bases.pl
- examples/inverse_totient.pl
- examples/parallel_fibprime.pl
- examples/porter.pl
- examples/project_euler_010.pl
- examples/project_euler_021.pl
- examples/project_euler_037.pl
- examples/project_euler_047.pl
- examples/project_euler_049.pl
- examples/project_euler_069.pl
- examples/project_euler_070.pl
- examples/project_euler_072.pl
- examples/project_euler_095.pl
- examples/project_euler_131.pl
- examples/project_euler_142.pl
- examples/project_euler_193.pl
- examples/project_euler_211.pl
- examples/project_euler_214.pl
- examples/project_euler_342.pl
- examples/project_euler_357.pl
- examples/sophie_germain.pl
- examples/twin_primes.pl
- examples/verify-cert.pl
- examples/verify-gmp-ecpp-cert.pl
- examples/verify-sage-ecpp-cert.pl