Why do prime numbers make these spirals?

Watch on YouTube

Show annotations

Download is disabled.

1,286,471

62,549

521

Genre: Education

Family friendly? Yes

Wilson score: 0.991

Rating: 4.967 / 5

Engagement: 4.9%

3Blue1Brown

Subscribe | 2.25M

Shared October 8, 2019

A story of mathematical play.
Home page: https://www.3blue1brown.com
Brought to you by you: http://3b1b.co/spiral-thanks

Based on this Math Stack Exchange post:
https://math.stackexchange.com/questi...

Want to learn more about rational approximations? See this Mathologer video.
https://youtu.be/CaasbfdJdJg

Also, if you haven't heard of Ulam Spirals, you may enjoy this Numberphile video:
https://youtu.be/iFuR97YcSLM

Dirichlet's paper:
https://arxiv.org/pdf/0808.1408.pdf

Important error correction: 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: https://github.com/3b1b/manim

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:
https://vincerubinetti.bandcamp.com/a...

Stream the music on Spotify:
https://open.spotify.com/album/1dVyjw...

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: http://3b1b.co/subscribe

Various social media stuffs:
Website: https://www.3blue1brown.com
Twitter: https://twitter.com/3blue1brown
Reddit: https://www.reddit.com/r/3blue1brown
Instagram: https://www.instagram.com/3blue1brown...
Patreon: https://patreon.com/3blue1brown
Facebook: https://www.facebook.com/3blue1brown



18:18

Hilbert's Curve: Is infinite math useful?

928K views

46:09

Why Isn't Functional Programming the Norm? – Richard Feldman

273K views

14:49

The Bizarre Behavior of Rotating Bodies, Explained

3.7M views

22:08

How to make these Alternative Dovetail Joints (The Knapp Joint)

1.1M views

1:00:18

Quantum Fields: The Real Building Blocks of the Universe - with David Tong

1.8M views

11:23

Why So Many Airlines are Going Bankrupt

1.8M views

12:34

Delayed Choice Quantum Eraser Explained

728K views

29:15

Nikola Tesla - Limitless Energy & the Pyramids of Egypt

1.4M views

17:04

Riemann Hypothesis - Numberphile

3.3M views

5:47

Imaginary Numbers Are Real [Part 1: Introduction]

4.3M views

12:46

The Speed of Light is NOT About Light

4M views

19:55

Fractals are typically not self-similar

1.7M views

12:19

Which Way Will the Water Go? (ft. Steve Mould)- Smarter Every Day 226

1.2M views

42:34

Re-Learning Math with Scott Flansburg, the Human Calculator (Part 1)

2.8M views

26:21

But how does bitcoin actually work?

2.9M views

13:58

The Josephus Problem - Numberphile

3.8M views

31:09

Quantum Theory Made Easy [1]

1.9M views

20:28

Visualizing the Riemann hypothesis and analytic continuation

2M views

14:01

The Most Unusual Ways Pi Shows Up In Mathematics | Can You Explain These?

171K views