The Prime Spiral
Wind the whole numbers outward in a square spiral, light only the primes, and watch a pattern nobody designed appear: they fall onto diagonal lines.
1 for Ulam's original. 41 for Euler's miracle. Or your birth year, your age, anything. I will wind the numbers out from there and light the primes.
Tip: hover a preset to see why it is famous. 41 is the one that made mathematicians stare.
The reframe
The primes are the closest thing mathematics has to randomness you can trust. You cannot predict the next one from the last. They are the building blocks every other whole number is made of, and they were supposed to be scattered. Then you wind them into a spiral and they line up. Not on the rows, not on the columns, on the diagonals, and they do it whether you start from 1 or from a million.
That is the feeling I want you to keep. A pattern can be completely real, sitting right in front of you, lit up on the screen, and still sit beyond anyone's power to explain. We can describe the diagonals. We can write the prime-rich polynomials down. We cannot derive the distribution of the primes from first principles, and the question that would, the Riemann hypothesis, has stood open since 1859 with a million dollars on it.
So when the streaks snapped into place and part of you thought that cannot be an accident, you were right. It is not an accident. It is just not yet understood. The most fundamental objects in arithmetic are still keeping secrets, in plain sight, on a piece of graph paper.
The history
Stanislaw Ulam, one of the mathematicians on the Manhattan Project, was sitting through a lecture he called long and very boring in 1963 when he started doodling a spiral of numbers and circling the primes. The diagonals jumped out at him, and with the early computers at Los Alamos he plotted thousands of them to be sure it was real. Scientific American put it on the cover in March 1964. The diagonals trace prime-rich quadratics, the most celebrated being Leonhard Euler's n*n plus n plus 41 from 1772, which yields forty primes in an unbroken run. Why the primes favor these curves connects to the deepest unsolved problem in the field, the Riemann hypothesis, posed by Bernhard Riemann in 1859 and one of the million dollar Millennium Prize problems still open today. Euclid proved the primes never run out around 300 BC. More than two thousand years later, we still cannot say exactly where the next one will fall.