HackerTube
HomeLongsLikedHistoryWatch laterCategoriesPlaylistsSettings

Why do prime numbers make these spirals? | Dirichlet’s theorem and pi approximations

3Blue1Brown7 HN recommenders · recommended in 5 months, 2019-2024
YouTube
7.6M views · 7 years ago · explainer · evergreen

3Blue1Brown explains why plotting primes in polar coordinates produces spiral patterns, using modular arithmetic, Dirichlet's theorem and rational approximations of pi.

Frequently recommended as the clearest explanation of prime spirals and the Ulam spiral.

Recreational & visual mathPure mathematics#primes#ulamspiral#modulararithmetic#piapproximation#3blue1brown

12 comments from Hacker News

@nmilo2024 · in “Numbers Are Leaves”

I'm not really sure what to say to this, other than watch this video and apply similar thinking to this problem: ▶ this video The leaf structure itself doesn't really have anything to do with ZF set theory or Von Neumann ordinals, other than supplying the inspiration for the base structure. Same way prime numbers don't generate the spirals in the video, all numbers do. So leave the ordinals out of this, experiment with different tree construction methods and you might uncover something cool about trees (but not necessarily about set theory)

CitesView on HN
@mikhailfranco2024 · in “Plotting Prime Numbers (2021)”

Ulam Spiral (and see ref to Martin Gardner's famous SciAm article): link Why do prime numbers make these spirals? | Dirichlet’s theorem and pi approximations - 3Blue1Brown ▶ this video

CitesView on HN
@godelski2024 · in “Ask HN: What is the best software to visualize a graph with a billion nodes?”

> But after a fairly small size, there's almost no utility in visualizing graphs. I want to stress this point and go a bit further. It can be worse as people have pareidolia[0], a tendency to see order in disorder. Like how you see familiar shapes in the clouds. There is a danger in that with large visualizations such as these that instead of conveying useful information, you counterproductively convince someone that something that isn't true is! Here's a relevant 3B1B video where this is kinda discussed. There is real meaning but the point is that it is also easy to be convinced of things that aren't true[1]. In fact, Grant's teaching style is so good you might even convince yourself of the thing he is disproving as he is revealing how we are tricked by the visualization. Remember what the original SO person latched onto. I think it's important to recognize that visualization is a nontrivial exercise. Grant makes an important point at the end, restating how the visualization was an artifact and how if you dig deep enough into an arbitrary question, you _can_ find value. Because at the end of the day, there are rules to these things. The same is true about graphs. There will always be value in the graph, but the point of graphing is to highlight the concepts that we want to convey. In a way, many people interpret what graphs are doing and why we use them backwards. You don't create visualizations to then draw value from them, but rather your plots are a mathematical analysis

RecommendsView on HN
@zimpenfish2024 · in “Breakthrough a step toward revealing hidden structure of prime numbers”

Numberphile[1] and 3b1b[2] (with a particularly good explanation of why it happens) have done good videos on the prime spiral. [1] link [2] ▶ this video

RecommendsView on HN
@curtisblaine2023 · in “Footsteps of pi”

I guess the Ulam spiral is more an artefact of the cartesian plane than an "hidden pattern": ▶ this video

CitesView on HN
@sargstuff2022 · in “Λ-2D: Exploration of Drawing as Programming Language, Ideas from Lambda Calculus”

Warning: Bit of a 'Hitch hikers guide to the galaxy"/conway game of life yak shave for a reply. Nice start to providing a simple way to visually interact/experiment/manipulate different multiple Neural network concepts by loading/transforming any traditional code (working or not) & reshuffling/tesselating the structual representation of the code to generate a turing tape path via color execution paths. Switching to pi calculus could provide the theory to support coroutine/coprossing/ threading" multiple interacting tape paths/color combinations/path diffs/scaled recusion to perform assembly language instructions. Raster graphics without the yak ( link ) Feed back between tape & "traditional code" as neural network layer(s)! Flexiable code (via tessilations) without changing the actual imported source code! So, complete svg (tape interactions) web page as code source on how to interact with web page, ( link ) what's displayed/played, documentation & usage manual included within code structure! Unicode permits implied piping rich kern font without all the tech fluff. Unicode fails because allows infinate multics and is there for k&r incomplete. But, this approach is way more dimensional/colorful than unicode/tech stuff. ?? can one's code unintentially provide a wordle problem & solution in one package ?? ( link ) ?? turing complete fourier transforms link toolkit concepts: Neural networks / analog stuff : link perceptrons: link spreadsheets (: link (turing spreads

CitesView on HN
@shezi2021 · in “Ulam Spiral”

Here is one of the most enlightening explanations for these kinds of spirals I have seen by 3blue1brown: ▶ this video Note that the setup is slightly different,since in that video they plot numbers along their polar coordinates. The results are very similar, since both create spirals with predictable angular offsets.

Strongly recommendsView on HN
@andrewflnr2021 · in “The Prime Hexagon”

For IMO a more meaningful phenomenon, this video by 3Blue1Brown explains why primes plotted as (p, p) in polar coordinates produce interesting patterns. ▶ this video

RecommendsView on HN
@lupire2021 · in “The Prime Hexagon”

3B1B has a semi related video on how working with prime numbers can help you see properties that are also found in composite numbers, since the sequence of primes overlaps with many other sequences. ▶ this video

RecommendsView on HN
@mdiesel2020 · in “How Many Decimals of Pi Do We Really Need? (2016)”

I've got Pi memorised more precisely than 355/113 as well for no good reason, and for engineering applications it doesn't serve any purpose. But the fraction is weirdly close and that's interesting for other (more academic) reasons, such as explaining why plotting primes in polar coordinates looks like a pattern: ▶ this video

CitesView on HN
@hinkley2020 · in “Why do electron shells have set limits? (1999)”

In this vein, I really enjoyed 1brown3blue breaking down why prime numbers form patterns when graphed in polar coordinates. ▶ this video

RecommendsView on HN
@excessive2019 · in “Unexpected Beauty in Primes”

The first time I saw these, I thought it hinted at some deep insight into the nature of primes. However, after watching the following video, I think it just says something about modular arithmetic and rational approximations of 2 Pi. ▶ this video The video is only about Archimedian spirals, but I suspect a similar analysis would apply to Ulam spirals too. We really like to find patterns.

RecommendsView on HN
Pi hiding in prime regularities29:43

Pi hiding in prime regularities

3Blue1Brown
2.8M views • 9 years ago
Visualizing the 4d numbers Quaternions31:51

Visualizing the 4d numbers Quaternions

3Blue1Brown
5.6M views • 8 years ago
Times Tables, Mandelbrot and the Heart of Mathematics13:37

Times Tables, Mandelbrot and the Heart of Mathematics

Mathologer
2.8M views • 11 years ago
Infinite fractions and the most irrational number13:29

Infinite fractions and the most irrational number

Mathologer
658K views • 10 years ago
Euler's formula with introductory group theory24:28

Euler's formula with introductory group theory

3Blue1Brown
2.8M views • 9 years ago
The essence of calculus17:05

The essence of calculus

3Blue1Brown
11.9M views • 9 years ago
Pi and the Mandelbrot Set - Numberphile7:56

Pi and the Mandelbrot Set - Numberphile

Numberphile
881K views • 11 years ago
Hilbert's Curve: Is infinite math useful?18:18

Hilbert's Curve: Is infinite math useful?

3Blue1Brown
2.4M views • 9 years ago
e^(iπ) in 3.14 minutes, using dynamics | DE54:08

e^(iπ) in 3.14 minutes, using dynamics | DE5

3Blue1Brown
3.4M views • 7 years ago
Pythagoras' theorem (a) | Math History | NJ Wildberger48:55

Pythagoras' theorem (a) | Math History | NJ Wildberger

Insights into Mathematics
517K views • 15 years ago
What is Euler's formula actually saying? | Ep. 4 Lockdown live math51:16

What is Euler's formula actually saying? | Ep. 4 Lockdown live math

3Blue1Brown
1.7M views • 6 years ago
But what is a Fourier series?  From heat flow to drawing with circles | DE424:47

But what is a Fourier series? From heat flow to drawing with circles | DE4

3Blue1Brown
19M views • 7 years ago
5040 and other Anti-Prime Numbers - Numberphile13:38

5040 and other Anti-Prime Numbers - Numberphile

Numberphile
2.4M views • 10 years ago
What does it feel like to invent math?15:08

What does it feel like to invent math?

3Blue1Brown
4.6M views • 11 years ago
Imaginary Numbers Are Real [Part 1: Introduction]5:47

Imaginary Numbers Are Real [Part 1: Introduction]

Welch Labs
8.6M views • 11 years ago
The Golden Ratio (why it is so irrational) - Numberphile15:13

The Golden Ratio (why it is so irrational) - Numberphile

Numberphile
3.9M views • 8 years ago
HACKENBUSH: a window to a new world of math57:03

HACKENBUSH: a window to a new world of math

Owen Maitzen
562K views • 5 years ago
Essence of linear algebra preview5:09

Essence of linear algebra preview

3Blue1Brown
2.8M views • 10 years ago
Ramanujan: Making sense of 1+2+3+... = -1/12 and Co.34:25

Ramanujan: Making sense of 1+2+3+... = -1/12 and Co.

Mathologer
3.6M views • 10 years ago
The Infinite Pattern That Never Repeats21:12

The Infinite Pattern That Never Repeats

Veritasium
21.9M views • 6 years ago