Miller–Rabin primality test
Summary
The Miller–Rabin test is a probabilistic primality test for an odd integer . Write with odd, and choose a base with . The number passes for base if , or if for some with . Each odd prime passes for each base. If fails for some base, then is composite.
Remarks
The prime case follows from Fermat's little theorem and the fact that are the only square roots of modulo a prime. If is an odd composite number, then at most of the bases let it pass. So random bases give an error probability of at most . Gary Miller found the test in 1976, in a deterministic form that depends on the extended Riemann hypothesis. Michael Rabin made it an unconditional probabilistic test in 1980.
Explanations
L1 human
The test checks a property that every prime has, for a few random bases. A composite number fails for most bases, so a few rounds expose it with high probability. The powers are fast to compute by modular exponentiation.
What this node needs for W2
- edge defines in: at least one definition (0 of 1)
- edge instance_of in: at least two examples (0 of 2)
- edge not_instance_of in: at least one non-example (0 of 1)
- edge specializes both: the more general notions and the special cases (0 of 1)
The writing levels say how complete the text of a node is. They do not measure its truth.
What this needs
To read this node, read these 7 nodes in this order. The foundations come first, and the list ends with this node.
- no evidence level
- Divisibility definition
- Modular exponentiation concept
- Congruence modulo n definition
- Prime number definition
- Fermat's little theorem statement
- Primality test concept
- Miller–Rabin primality test concept
Sources
- Web https://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test, lead section
- Web https://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test, Strong probable primes
What links here
No node links to this node yet.