Primality testing is the decision problem of determining whether an input integer is a prime number.
For an odd candidate , write with odd. A base passes when or for some ; a nontrivial common divisor of or failure of these conditions proves compositeness. A prime passes every base, while an odd composite passes at most one quarter of possible bases. Independent rounds give a false probable-prime probability at most . A passing composite is a strong pseudoprime, stronger than a Fermat pseudoprime.
The Fermat test looks for a coprime base with . Such a witness proves compositeness by the Fermat little theorem, but Carmichael numbers pass for every coprime base.
A base coprime to the tested odd composite for which a specified probable-prime criterion passes. The sets of passing bases depend on the criterion and need not be subgroups.
The Agrawal–Biswas primality test checks the identity modulo and a random low-degree monic polynomial. Prime inputs always pass, while a composite input that is not a prime power fails with inverse-polynomial probability per trial.
Articles by others on the same topic
There are currently no matching articles.