Skip to content
Back to the journal

Prime Atlas

I put the primes in a spiral. The first surprise was waiting a few squares from the center.

Prime numbers have always fascinated me. Eleven and thirteen are practically touching. Between twenty-three and twenty-nine there’s room to spare. I could keep writing them across a sheet of paper, but what shape would that list take if I let it wander off the line?

All the talk about the Riemann zeta function got me playing with primes again. I love that the zeros of a function have something to say about an ordinary act like counting the primes up to a given number. My question for an afternoon at the computer was a smaller one. What could I see if I gave each prime a place in a drawing? A little more on the Riemann hypothesis

A sheet of graph paper

Try this. Put 1 in the middle, 2 just to its right and 3 above the 2. Keep counting in a square spiral, working your way out. Now mark just the primes.

Starting at 3, go diagonally up and to the right. First 13, then 31. By now I’m ready to put money on the next square. It’s 57. And 57 is three times nineteen.

That’s what I like about the Ulam spiral. In a few seconds one diagonal gave me a hunch and a number I could test it on.

Changing the paper

In Prime Atlas I can keep the numbers and change the paper. In the polar plot, each prime gives me an angle in radians, and its square root tells me how far to go from the center. The diagonals of the grid give way to something that looks like it has arms. You can go back and forth between the two drawings with the same 168 primes up to 1,000.

168 primes, two drawings

Open either drawing in the atlas and try a different upper limit.

I ended up with thirteen ways of looking at primes. This is where I’m glad to have AI handy. With the time I usually have to code for fun, I’d probably have stopped at the first spiral. Now I get to try a second idea while I’m still curious about the first.

I kept the decisions in Backplane. When another drawing occurs to me, I’ll be able to find the rule I used to place each dot and why I picked it. I like being able to close the atlas for today and leave that page blank.