1 video

Prime patterns

Primes plotted in ways that show hidden structure.

A prime is a whole number bigger than 1 whose only factors are 1 and itself: 2, 3, 5, 7, 11, 13 and so on. Primes look scattered with no rule, yet plotted the right way they line up into spirals, rays and stripes. This series shows where those patterns come from. Usually the answer is simple arithmetic, not a secret of the primes.

How it works

Every number has prime building blocks. Any whole number above 1 is a product of primes in exactly one way. A number that isn't prime always has a prime factor no bigger than its square root. So to test numbers up to N, you only need to try the primes up to √N.

The sieve. Eratosthenes' method finds primes without dividing at all. Write the numbers down, then for each prime p in turn cross out p², p² + p, p² + 2p and so on. Smaller multiples of p have a smaller prime factor too, so they are already gone. Whatever is left standing is prime.

Patterns come from remainders. Every prime after 2 is odd, and every prime after 3 leaves a remainder of 1 or 5 when divided by 6. In general, a prime bigger than k can't share a factor with k, so primes avoid every remainder that does. Any picture that sorts numbers by their remainder mod some k will show stripes or arms where primes can live, and empty gaps where they can't.

Spirals come from near misses with π. Plot each prime p at distance p from the centre and turned by p radians (No. 029). Since 44 radians is very nearly 7 full turns, numbers 44 apart land at almost the same angle and form 44 slowly curling arms. Primes avoid the arms whose numbers share a factor with 44, so only 20 of the 44 arms have primes beyond 2 and 11. Zoom out further and 710 radians is almost exactly 113 turns, because 355/113 is so close to π, and the arms straighten into rays.

In the video

No. 029 plots the primes this way, first up to 1,000 (168 primes), then zooming out to 8,000 (1,007 primes), where the 20 spiral arms show clearly.

Go further