The Baillie-PSW Primality Test - Finding Prime Numbers That Look Like Flags
Wrath of Math via YouTube
Learn the Skills Netflix, Meta, and Capital One Actually Hire For
Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 40% Off
One plan covers every Professional Certificate on Coursera. 40% off Coursera Plus Annual.
Unlock All Certificates
Explore the fascinating Baillie-PSW primality test through the lens of the United States of America prime, a remarkable 5,382-digit prime number discovered by Vadim Ponomarenko that visually resembles the American flag. Learn how this powerful probabilistic primality test works and discover the mathematical concepts that make it so effective at identifying prime numbers. Master Fermat's Little Theorem and understand its role in primality testing, then delve into the base 2 strong probable prime test as the first component of the Baillie-PSW method. Examine the Legendre and Jacobi symbols, essential tools for determining quadratic residues, and explore how these symbols contribute to the test's reliability. Investigate Lucas sequences and their properties, understanding how they form the second crucial component of the Baillie-PSW test. Analyze why certain composite numbers like 119 can fool individual tests but struggle to deceive the combined Baillie-PSW approach. Gain practical knowledge of how to implement this test yourself to potentially discover prime numbers that visually represent your own country's flag, while appreciating the mathematical elegance behind one of the most reliable primality tests available.
Syllabus
0:00 Intro
1:43 Checking Primes
3:10 The USA Prime
4:34 Fermat's Little Theorem
9:01 Base 2 Strong Probable Prime Test
14:17 Step 2
16:46 Legendre Symbol
18:35 Jacobi Symbol
20:14 D, P, Q
22:15 Lucas Sequence
25:33 119 is Pseudoprime
26:44 A Really Good Test
27:55 Method
28:34 Conclusion
Taught by
Wrath of Math