Why do prime numbers make these spirals? | Dirichlet’s theorem and pi approximations
A curious pattern, approximations for pi, and prime distributions.
Help fund future projects:
An equally valuable form of support is to simply share some of the videos.
Special thanks to these supporters:
Based on this Math Stack Exchange post:
Want to learn more about rational approximations? See this Mathologer video.
Also, if you haven’t heard of Ulam Spirals, you may enjoy this Numberphile video:
Dirichlet’s paper:
Timestamps:
0:00 - The spiral mystery
3:35 - Non-prime spirals
6:10 - Residue classes
7:20 - Why the galactic spirals
9:30 - Euler’s totient function
10:28 - The larger scale
14:45 - Dirichlet’s theorem
20:26 - Why care?
Corrections:
18:30: In the video, I say that Dirichlet showed that the primes are equally distributed among allowable residue classes, but this is not historically accurate. (By “allowable“, here, I mean a residue class whose elements are coprime to the modulus, as described in the video). What he actually showed is that the sum of the reciprocals of all primes in a given allowable residue class diverges, which proves that there are infinitely many primes in such a sequence.
Dirichlet observed this equal distribution numerically and noted this in his paper, but it wasn’t until decades later that this fact was properly proved, as it required building on some of the work of Riemann in his famous 1859 paper. If I’m not mistaken, I think it wasn’t until Vallée Poussin in (1899), with a version of the prime number theorem for residue classes like this, but I could be wrong there.
In many ways, this was a very silly error for me to have let through. It is true that this result was proven with heavy use of complex analysis, and in fact, it’s in a complex analysis lecture that I remember first learning about it. But of course, this would have to have happened after Dirichlet because it would have to have happened after Riemann!
My apologies for the mistake. If you notice factual errors in videos that are not already mentioned in the video’s description or pinned comment, don’t hesitate to let me know.
------------------
These animations are largely made using manim, a scrappy open-source python library:
If you want to check it out, I feel compelled to warn you that it’s not the most well-documented tool, and it has many other quirks you might expect in a library someone wrote with only their own use in mind.
Music by Vincent Rubinetti.
Download the music on Bandcamp:
Stream the music on Spotify:
If you want to contribute translated subtitles or to help review those that have already been made by others and need approval, you can click the gear icon in the video and go to subtitles/cc, then “add subtitles/cc“. I really appreciate those who do this, as it helps make the lessons accessible to more people.
------------------
3blue1brown is a channel about animating math, in all senses of the word animate. And you know the drill with YouTube, if you want to stay posted on new videos, subscribe:
Various social media stuffs:
Website:
Twitter:
Reddit:
Instagram:
Patreon:
Facebook:
1 view
142
37
3 days ago 00:03:07 1
Two Faced (Official Music Video) - Linkin Park
3 days ago 00:00:32 1
…but the people are retarded
3 days ago 00:08:10 1
AI Agents Will Create MILLIONAIRES in 2025 – Are You Ready
5 days ago 00:03:02 1
SPX Options Trading : Strategies for Big Gains!
6 days ago 00:02:41 6
sinking in the deep || Viktor (Arcane)
1 week ago 00:25:19 1
Существа в открытом космосе возможны? / Большой Взрыв наоборот / Астрообзор #169
1 week ago 00:00:59 1
Melania Trump is doing things differently this time
2 weeks ago 00:03:57 1
Don Toliver - BROTHER STONE (FEAT. KODAK BLACK) [Official Music Video]
2 weeks ago 00:04:04 5
Mass Effect Trilogy Trailer
3 weeks ago 00:02:49 1
Chris Isaak ~ Black Flowers
3 weeks ago 00:39:19 1
Historian Answers Witchcraft Questions | Tech Support | WIRED
3 weeks ago 00:04:45 1
Hollywood Undead - Hollywood Forever (Official Music Video)
4 weeks ago 00:03:13 2
Benson Boone - Beautiful Things (Official Music Video)
4 weeks ago 00:02:52 3
The Crying Game - Marcus Nimbler
4 weeks ago 00:04:38 1
Starbomb - Kiss The Elden Ring (Official Music Video)
4 weeks ago 00:23:07 1
Do You Know who You Are? | Bob Proctor
4 weeks ago 01:16:30 1
#1 Neurosurgeon: How to Manifest Anything You Want & Unlock the Unlimited Power of Your Mind
4 weeks ago 00:39:35 1
He QUIT CHESS for college, now he’s TOP 8! WEI YI Podcast
4 weeks ago 00:03:05 1
Jeorgia Rose - Undertone (Official Music Video)
4 weeks ago 00:01:39 1
Put 1 Cork in the Fridge and WATCH WHAT HAPPENS💥(Genius Trick)🤯
4 weeks ago 01:01:41 1
WildCraft Arena | BabyPunchers vs DANGE’s team | 3v3, 2v2
4 weeks ago 00:13:40 1
Why Didn’t I Know This Sooner! This 60-Year-Old Plumber’s Brilliant Idea Will Save You Millions
4 weeks ago 00:06:02 1
Youtube Unsubscribe from channels on autopilot with iMacros