primetesting
Primetesting, also known as primality testing, is the computational problem of deciding whether a given integer greater than 1 is prime. In addition to a binary yes/no answer, some algorithms can provide a primality certificate for prime inputs, which allows independent verification of correctness.
Algorithms for primetesting fall into deterministic and probabilistic categories. Deterministic tests guarantee correctness for all inputs,
Probabilistic primality tests, such as the strong probable prime test (a form of Miller–Rabin) and Fermat-type
Historical developments include early Fermat and Miller–Rabin tests, the theoretical guarantee provided by AKS, and practical