pseudoprime
A pseudoprime to a base a is a composite number n with gcd(a,n)=1 such that a^(n−1) ≡ 1 (mod n). Such numbers satisfy Fermat's little theorem for that base and can fool simple primality tests that rely only on Fermat's criterion.
For example, 341 = 11 × 31 is a Fermat pseudoprime to base 2, since 2^340 ≡ 1 (mod
Carmichael numbers are a subset of pseudoprimes with the stronger property of being Fermat pseudoprimes for
Strong pseudoprimes to a base a are composites that pass the Miller-Rabin test for that base. Such
In practice, the existence of pseudoprimes highlights the need for stronger primality tests in cryptography, and