1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
#!/usr/bin/env perl
use strict;
use warnings;
use Math::Prime::Util;
use Test::More tests => 1;
my @functions = qw(
prime_get_config prime_set_config
prime_precalc prime_memfree
is_prime is_prob_prime is_provable_prime is_provable_prime_with_cert
prime_certificate verify_prime
is_pseudoprime is_euler_pseudoprime is_strong_pseudoprime
is_euler_plumb_pseudoprime
is_lucas_pseudoprime
is_strong_lucas_pseudoprime
is_extra_strong_lucas_pseudoprime
is_almost_extra_strong_lucas_pseudoprime
is_frobenius_pseudoprime
is_frobenius_underwood_pseudoprime is_frobenius_khashin_pseudoprime
is_perrin_pseudoprime is_catalan_pseudoprime
is_aks_prime is_bpsw_prime is_ramanujan_prime is_mersenne_prime
is_power is_prime_power is_pillai is_semiprime is_square is_polygonal
is_square_free is_primitive_root is_carmichael is_quasi_carmichael
is_fundamental is_totient
sqrtint rootint logint
miller_rabin_random
lucas_sequence lucasu lucasv
primes twin_primes ramanujan_primes sieve_prime_cluster sieve_range
forprimes forcomposites foroddcomposites forsemiprimes fordivisors
forpart forcomp forcomb forperm forderange formultiperm forsetproduct
forfactored forsquarefree
lastfor
numtoperm permtonum randperm shuffle
prime_iterator prime_iterator_object
next_prime prev_prime
prime_count semiprime_count
prime_count_lower prime_count_upper prime_count_approx
nth_prime nth_prime_lower nth_prime_upper nth_prime_approx inverse_li
twin_prime_count twin_prime_count_approx
nth_twin_prime nth_twin_prime_approx
ramanujan_prime_count ramanujan_prime_count_approx
ramanujan_prime_count_lower ramanujan_prime_count_upper
nth_ramanujan_prime nth_ramanujan_prime_approx
nth_ramanujan_prime_lower nth_ramanujan_prime_upper
sum_primes print_primes
random_prime random_ndigit_prime random_nbit_prime random_strong_prime
random_proven_prime random_proven_prime_with_cert
random_maurer_prime random_maurer_prime_with_cert
random_shawe_taylor_prime random_shawe_taylor_prime_with_cert
random_semiprime random_unrestricted_semiprime
random_factored_integer
primorial pn_primorial consecutive_integer_lcm gcdext chinese
gcd lcm factor factor_exp divisors valuation hammingweight
todigits fromdigits todigitstring sumdigits
invmod sqrtmod addmod mulmod divmod powmod
vecsum vecmin vecmax vecprod vecreduce vecextract
vecany vecall vecnotall vecnone vecfirst vecfirstidx
moebius mertens euler_phi jordan_totient exp_mangoldt liouville
partitions bernfrac bernreal harmfrac harmreal
chebyshev_theta chebyshev_psi
divisor_sum carmichael_lambda kronecker hclassno inverse_totient
ramanujan_tau ramanujan_sum
binomial stirling znorder znprimroot znlog legendre_phi
factorial factorialmod
ExponentialIntegral LogarithmicIntegral RiemannZeta RiemannR LambertW Pi
irand irand64 drand urandomb urandomm csrand random_bytes entropy_bytes
);
can_ok( 'Math::Prime::Util', @functions);
|