How Computers Find Massive Primes in Seconds

PurpleMind May 8, 2025
Video Thumbnail
PurpleMind Logo

PurpleMind

View Channel

About

Beautiful videos about math and computer science. Business inquiries: [email protected] Owned and operated by PurpleMind LLC

Video Description

Support me on Patreon! https://www.patreon.com/PurpleMindCS If you'd like to aid the success of this channel, this is the best way to do it! Every contribution is sincerely, greatly, appreciated. The Miller-Rabin Primality Test is one of the most commonly-used algorithms that computers use to find massive prime numbers. But one very interesting property it has is that it can only be 99.9999...% confident that the numbers it finds are actually prime! The story behind this test dates back to the 17th century, with a simple theorem proved by the legendary French mathematician, Pierre de Fermat. There are so many amazing pieces of math and techniques that make this all work, and it goes to show that the search for prime numbers is one of the most fascinating problems at the intersection of mathematics and computer science. If you or your institution is interested in sponsoring the topic of a future PurpleMind video, please contact me via [email protected]! Brittle Rille - Reunited by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/by/4.0/ Math animations are made using Manim, by 3Blue1Brown. Character animation done by Divyesh Patel. Discord Server: https://discord.gg/smuxnzZ5Zf. Feel free to join! Business Inquiries: [email protected]

You May Also Like

Prime Number Hunting Must-Haves

AI-recommended products based on this video

Loading...
Casio FX300MSPLUS2 Engineering/Scientific Calculator

Casio FX300MSPLUS2 Engineering/Scientific Calculator

(1,541)
$12.99$12.49
FREE delivery Mon, Sep 15 on your first order
4K+ bought in past month
Loading...
Texas Instruments BA II Plus Financial Calculator, Black

Texas Instruments BA II Plus Financial Calculator, Black

(20,991)
$39.99$38.99
FREE delivery Mon, Sep 15
3K+ bought in past month
Loading...
Dell Inspiron 7640 Laptop - 16.0-inch 16:10 2.5K (2560x1600) Display, Intel Core Ultra 7-155H Processor, 16GB DDR5 RAM, 1TB SSD, Windows 11 Home, Onsite Service & Migrate - Ice Blue EPEAT

Dell Inspiron 7640 Laptop - 16.0-inch 16:10 2.5K (2560x1600) Display, Intel Core Ultra 7-155H Processor, 16GB DDR5 RAM, 1TB SSD, Windows 11 Home, Onsite Service & Migrate - Ice Blue EPEAT

(395)
$1,719.89
FREE delivery Sun, Aug 24
Loading...
Dell Inspiron 3535 Laptop - 15.6 inch FHD (1920 x 1080) 120Hz Display, AMD Ryzen 5-7520U Processor, 8GB LPDDR5 RAM, 512GB SSD, AMD Radeon Graphics, Windows 11 Home, Migrate Service - Carbon Black EPEAT

Dell Inspiron 3535 Laptop - 15.6 inch FHD (1920 x 1080) 120Hz Display, AMD Ryzen 5-7520U Processor, 8GB LPDDR5 RAM, 512GB SSD, AMD Radeon Graphics, Windows 11 Home, Migrate Service - Carbon Black EPEAT

(449)
$649.99
FREE delivery Sun, Aug 24
50+ bought in past month
Loading...
45W 65W AC Adapter Laptop Charger for Dell Inspiron 15 14 13 17 3000 5000 7000 Series 5558 5559 Charger Latitude E6440 E6430 3520 3420 XPS 13 14 9333 9350 Notebook Dell Computer Power Supply Cord

45W 65W AC Adapter Laptop Charger for Dell Inspiron 15 14 13 17 3000 5000 7000 Series 5558 5559 Charger Latitude E6440 E6430 3520 3420 XPS 13 14 9333 9350 Notebook Dell Computer Power Supply Cord

(52)
$13.99
FREE delivery Sun, Aug 24 on your first order
100+ bought in past month
Loading...
Charger for Dell Computer Inspiron XPS Laptop 65W 45W Power Supply AC Adapter for Dell-Inspiron 15-3000 15-5000 15-7000 11-3000 13-5000 13-7000 17-5000 XPS 13 Series 5559 5558 5755 5758 Laptop Charger

Charger for Dell Computer Inspiron XPS Laptop 65W 45W Power Supply AC Adapter for Dell-Inspiron 15-3000 15-5000 15-7000 11-3000 13-5000 13-7000 17-5000 XPS 13 Series 5559 5558 5755 5758 Laptop Charger

(621)
$21.99
FREE delivery Sun, Aug 24 on your first order
100+ bought in past month
Loading...
Lenovo ThinkPad T14 Laptop 2024 14” WUXGA 1920 x 1200 Touchscreen, Intel Core Ultra 7 155U, 12-core, Intel Graphics, 32GB DDR5, 512GB SSD, Backlit KB, FP, Wi-Fi 6E, 5.0MP + IR Camera, Windows 10 Pro

Lenovo ThinkPad T14 Laptop 2024 14” WUXGA 1920 x 1200 Touchscreen, Intel Core Ultra 7 155U, 12-core, Intel Graphics, 32GB DDR5, 512GB SSD, Backlit KB, FP, Wi-Fi 6E, 5.0MP + IR Camera, Windows 10 Pro

(0)
$1,871.13
FREE delivery Jun 23 - Jul 2
Loading...
Lenovo 2024 ThinkPad Laptop 14" WUXGA 1920 x 1200 Intel Core Ultra 7 155U 12-Core Intel Graphics 32GB DDR5 512GB SSD Wi-Fi 6E Windows 10 Pro Backlit KB 5.0MP + IR Camera Touchscreen FP Thunderbolt 4

Lenovo 2024 ThinkPad Laptop 14" WUXGA 1920 x 1200 Intel Core Ultra 7 155U 12-Core Intel Graphics 32GB DDR5 512GB SSD Wi-Fi 6E Windows 10 Pro Backlit KB 5.0MP + IR Camera Touchscreen FP Thunderbolt 4

(0)
$1,873.79
FREE delivery Jun 23 - Jul 2
Loading...
Lenovo ThinkPad T14 Laptop 2024 14” WUXGA 1920 x 1200 Touchscreen, Intel Core Ultra 7 155U, 12-core, Intel Graphics, 32GB DDR5, 1TB SSD, Backlit KB, FP, Wi-Fi 6E, 5.0MP + IR Camera, Windows 11 Pro

Lenovo ThinkPad T14 Laptop 2024 14” WUXGA 1920 x 1200 Touchscreen, Intel Core Ultra 7 155U, 12-core, Intel Graphics, 32GB DDR5, 1TB SSD, Backlit KB, FP, Wi-Fi 6E, 5.0MP + IR Camera, Windows 11 Pro

(0)
$1,956.90
FREE delivery Jun 23 - Jul 2
Loading...
Lenovo 2024 ThinkPad Laptop 14" WUXGA 1920 x 1200 Intel Core Ultra 7 155U 12-Core Intel Graphics 32GB DDR5 512GB SSD Wi-Fi 6E Windows 11 Pro Backlit KB 5.0MP + IR Camera Touchscreen FP Thunderbolt 4

Lenovo 2024 ThinkPad Laptop 14" WUXGA 1920 x 1200 Intel Core Ultra 7 155U 12-Core Intel Graphics 32GB DDR5 512GB SSD Wi-Fi 6E Windows 11 Pro Backlit KB 5.0MP + IR Camera Touchscreen FP Thunderbolt 4

(0)
$1,873.79
FREE delivery Jun 20 - 30
Loading...
10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

(1)
$99.99
FREE delivery Mon, Aug 11
Loading...
ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

(49)
$117.29$102.21
$6.86 delivery Thu, Aug 14
Loading...
7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

(61)
$68.99
FREE delivery Tue, Aug 12
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
SAMSUNG EVO Select Micro SD-Memory-Card + Adapter, 128GB microSDXC 160MB/s Full HD & 4K UHD, UHS-I, U3, A2, V30, for Android Smartphones, Tablets, Nintendo-Switch (MB-ME128SA/AM) [Canada Version]

SAMSUNG EVO Select Micro SD-Memory-Card + Adapter, 128GB microSDXC 160MB/s Full HD & 4K UHD, UHS-I, U3, A2, V30, for Android Smartphones, Tablets, Nintendo-Switch (MB-ME128SA/AM) [Canada Version]

(12,472)
$19.99$18.59
FREE delivery Sun, Aug 10 on your first order
400+ bought in past month
Loading...
Samsung EVO Select Micro SD Memory Card + Adapter, 256GB microSDXC 160MB/s Full HD & 4K UHD, UHS-I, U3, A2, V30, for Android Smartphones, Tablets, Nintendo-Switch (MB-ME256SA/AM) [Canada Version]

Samsung EVO Select Micro SD Memory Card + Adapter, 256GB microSDXC 160MB/s Full HD & 4K UHD, UHS-I, U3, A2, V30, for Android Smartphones, Tablets, Nintendo-Switch (MB-ME256SA/AM) [Canada Version]

(11,340)
$34.99
FREE delivery Sat, Jun 14 on your first order
200+ bought in past month
Loading...
Logitech M185 Wireless Mouse, 2.4GHz with USB Mini Receiver, 12-Month Battery Life, 1000 DPI Optical Tracking, Ambidextrous, Compatible with PC, Mac, Laptop - Black

Logitech M185 Wireless Mouse, 2.4GHz with USB Mini Receiver, 12-Month Battery Life, 1000 DPI Optical Tracking, Ambidextrous, Compatible with PC, Mac, Laptop - Black

(43,809)
$14.99$11.99
FREE delivery Mon, Sep 22 on your first order
1K+ bought in past month
Loading...
Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black
Best Seller

Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black

(17,871)
$27.98$22.38
FREE delivery Tue, Oct 14 on your first order
500+ bought in past month
Loading...
Logitech G305 LIGHTSPEED Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

Logitech G305 LIGHTSPEED Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

(21,223)
$44.98
FREE delivery Tue, Oct 14
1K+ bought in past month
Loading...
Logitech G502 HERO High Performance Wired Gaming Mouse, HERO 25K Sensor, 25,600 DPI, RGB, Adjustable Weights, 11 Programmable Buttons, On-Board Memory, PC / Mac, Black
Best Seller

Logitech G502 HERO High Performance Wired Gaming Mouse, HERO 25K Sensor, 25,600 DPI, RGB, Adjustable Weights, 11 Programmable Buttons, On-Board Memory, PC / Mac, Black

(54,445)
$49.98$44.98
FREE delivery Tue, Oct 14
1K+ bought in past month
Loading...
Anker 332 USB-C Hub (5-in-1) with 4K HDMI Display, 5Gbps - and 2 5Gbps USB-A Data Ports and for MacBook Pro, MacBook Air, Dell XPS, Lenovo Thinkpad, HP Laptops and More

Anker 332 USB-C Hub (5-in-1) with 4K HDMI Display, 5Gbps - and 2 5Gbps USB-A Data Ports and for MacBook Pro, MacBook Air, Dell XPS, Lenovo Thinkpad, HP Laptops and More

(11,639)
$23.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
Dell MS5120W Wireless Computer Mouse - with Bluetooth Connection with Long Life Battery (Black)

Dell MS5120W Wireless Computer Mouse - with Bluetooth Connection with Long Life Battery (Black)

(1,461)
$49.99$49.00
FREE delivery Sun, Aug 24