Friday, October 12, 2012 CC-BY-NC
Primality testing and applications to cryptography

Maintainer: admin

Lecture notes for lecture #17 of MATH 235, taught by Henri Darmon. These lecture notes are student-generated and any errors or omissions should be assumed to be the fault of the notetaker and not of the lecturer. To correct an error, you have to be registered and logged-in; alternatively, you can contact @dellsystem directly.

In this lecture, we continued section 13 of the notes.

1Primality testing

Why is this useful, why is this difficult


  • Trial division (slow)
  • Wilson's theorem (slow)
  • Fermat's little theorem (quick but can't always distinguish primes from composites)


Probabilistic algorithm, should use FLT first and then Miller-Rabin to weed out pseudoprimes


Probably the significant application of number theory

Public-key cryptography, RSA, one-way functions, etc

How it works mathematically (the theorem + proof)