isprime() tests one integer using GMP (Baillie-PSW plus Miller-Rabin
rounds), so its answer is certain below 2^64 and a probable prime above,
as in SymPy. is_gaussian_prime() tests a Gaussian integer. The remaining
functions are the individual pseudoprime tests: Fermat, Euler and
Euler-Jacobi to base a, Miller-Rabin mr() over bases, the Selfridge
Lucas tests, proth_test() for Proth numbers and is_mersenne_prime().
is_square() tests for a perfect square when given an integer.
Usage
isprime(n)
is_gaussian_prime(num)
is_fermat_pseudoprime(n, a)
is_euler_pseudoprime(n, a)
is_euler_jacobi_pseudoprime(n, a)
mr(n, bases)
is_lucas_prp(n)
is_strong_lucas_prp(n)
is_extra_strong_lucas_prp(n)
proth_test(n)
is_mersenne_prime(n)