Miller–Rabin primality test
Builds on Primality testFermat's little theoremModular exponentiation
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.
Reading path
To understand this page from the ground up, read these 7 pages in order. The foundations come first.
Show the path as a graph
- 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
Where this leads
2 pages build on this one.
Further reading
- 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
About this page
| Tag | 0SZCSYHW60 |
|---|---|
| URI | m2://0SZCSYHW60 |
| Aliases | rabin-miller-primality-test |
| Kind | concept |
| Writing | W1 stated |
| MSC | 11Y11 |
| Specializes | Primality test |
| Uses | Primality test, Fermat's little theorem, Modular exponentiation |
| Same as |
Markdown · JSON · Edit on GitHub
What this page 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)
The writing levels say how complete the text of a page is. They do not measure its truth.