MATH3080 · Method · Chapter 8 · Primality testing
Miller–Rabin test
10 steps of prerequisites below it
Write n − 1 = 2^s d, draw k independent uniform bases and run the strong round on each; any failure proves n composite, and otherwise the verdict is probable prime.
Taught in
- 8.1 The Miller–Rabin strong probable-prime test · introduced
- 8.2 Miller–Rabin traces and computational cost · developed
- 8.3 A subgroup bound for Miller–Rabin errors · applied
Builds on
- Fermat's little theorem · used in an argument or worked solution, passage 8.1
- A nontrivial square root of 1 reveals a factor · used in an argument or worked solution, passage 8.1
- Strong probable prime · used in an argument or worked solution, passage 8.1
- The half bound · used in an argument or worked solution, passage 8.3
Used by
Everything this builds on, earliest first · 27 steps
Each step comes after its own prerequisites, so reading in this order never needs something you have not met. It is a reading order for these notes, not a diagnosis of what you know.
- Divisibility · 1.1
- Greatest common divisor · 1.1
- Division with remainder · 1.1
- Euclid's invariant · 1.2
- Euclidean algorithm · 1.1
- Extended Euclidean invariant · 1.2
- Bézout identity · 1.1
- Congruence · 2.1
- Unit · 2.1
- Unit group · 2.2
- Euler's function · 3.1
- Euler's theorem · 3.1
- Fermat's little theorem · 2.2
- Prime · 1.1
- Euclid's lemma · 1.1
- A nontrivial square root of 1 reveals a factor · 8.1
- Coprime · 1.1
- Unique factorization · 1.1
- Chinese remainder theorem · 2.1
- Zero divisor · 2.2
- No zero divisors modulo a prime · 2.2
- Square roots of one modulo a prime · 2.2
- Strong sequence · 8.1
- Strong probable prime · 8.1
- Multiplicative order · 3.1
- Non-coprime bases always fail · 8.3
- The half bound · 8.3
Possible roots and a review route need your own answers on these points. None are recorded yet, so none are suggested.
Longest chain down to a starting point
Each step is used by the one above it, across courses where the notes link them. It ends at a point the notes define without another point.