Skip to content

MATH3080 · Theorem · Chapter 8 · Primality testing

Computational cost

11 steps of prerequisites below it

One strong round on a β-bit input uses fewer than 2β modular multiplications, hence O(β³) bit operations with schoolbook arithmetic, which is polynomial while trial division is exponential.

Taught in

Uses

Used by

No later knowledge point in these notes uses it.

Everything this builds on, earliest first · 33 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.

  1. Division with remainder · 1.1
  2. Divisibility · 1.1
  3. Greatest common divisor · 1.1
  4. Euclid's invariant · 1.2
  5. Euclidean algorithm · 1.1
  6. Division count · 1.2
  7. Fibonacci numbers · 1.2
  8. Division-count lower bound · 1.2
  9. Fibonacci growth bounds · 1.2
  10. Logarithmic division bound · 1.2
  11. Extended Euclidean invariant · 1.2
  12. Bézout identity · 1.1
  13. Congruence · 2.1
  14. Unit · 2.1
  15. Unit group · 2.2
  16. Euler's function · 3.1
  17. Euler's theorem · 3.1
  18. Fermat's little theorem · 2.2
  19. Prime · 1.1
  20. Euclid's lemma · 1.1
  21. A nontrivial square root of 1 reveals a factor · 8.1
  22. Coprime · 1.1
  23. Unique factorization · 1.1
  24. Chinese remainder theorem · 2.1
  25. Zero divisor · 2.2
  26. No zero divisors modulo a prime · 2.2
  27. Square roots of one modulo a prime · 2.2
  28. Strong sequence · 8.1
  29. Strong probable prime · 8.1
  30. Multiplicative order · 3.1
  31. Non-coprime bases always fail · 8.3
  32. The half bound · 8.3
  33. Miller–Rabin test · 8.1

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.

  1. Miller–Rabin test
  2. Fermat's little theorem
  3. Euler's theorem
  4. Euler's function
  5. Unit group
  6. Unit
  7. Bézout identity
  8. Euclidean algorithm
  9. Euclid's invariant
  10. Greatest common divisor
  11. Divisibility

Back to the graph →Read the note 8.2 →

Vercel visit statistics and public-page performance measurements each require separate consent. Neither is needed to use the website.

Website function storage (used when needed)

Security, sign-in and your chosen preferences use storage when needed. This is separate from optional statistics.

Withdrawing stops future statistics. The page reloads if analytics code needs unloading. It does not delete data already sent.

Read Cookie and storage details