HackerTube.dev

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

3Blue1Brown · 7.6M views · 2019-10-08 · 22:21

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

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

On Hacker News

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

Recommended by 7 HN people across 5 months · HN mentions 2019–2024

Topics

Search by tags

What people said

shezi · 2021-08 · Strong recommendation

Here is one of the most enlightening explanations for these kinds of spirals I have seen by 3blue1brown: [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.

Read the original HN comment ↗
zimpenfish · 2024-08 · Recommendation

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] [VIDEO]

Read the original HN comment ↗
godelski · 2024-08 · Recommendation

> 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

Read the original HN comment ↗

Sources

Video by 3Blue1Brown, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources