Instructional Video
Khan Academy

Khan Academy: Randomized Algorithms: Fermat's Little Theorem

9th - 10th
Introduction to a key result in elementary number theory using a visualization with beads.
Instructional Video
Khan Academy

Khan Academy: Randomized Algorithms: Fermat Primality Test

9th - 10th
This video is part 10 of a series. It shows a quick outline of how & why it works.