Seeing Primes Contents

Welcome

Seeing Primes

This is a walk through the prime numbers for people who are not mathematicians: sixteen short chapters, each built around a picture you can play with.

Primes are the numbers that cannot be divided: 2, 3, 5, 7, 11 and so on. Every other whole number is made by multiplying primes together, which makes them the atoms of arithmetic. They are defined in one line and a child can find the first few. After twenty-three centuries nobody can say where the next one will fall, and every password and payment you send is protected by how hard it is to take a large number apart into its primes.

The walk takes three steps back. Up close, the primes line up in spirals and grids. Further back, they thin out by a law simple enough to fit in one line. Furthest back, the errors in that law turn out to be played, like a chord, by the zeros of a single function.

It ends at the edge of what is known: the Riemann hypothesis, a statement about the primes that almost every mathematician believes, that has passed twelve trillion tests, and that nobody can prove.

What a prime is

A prime is a whole number above 1 that only 1 and itself divide exactly: 2, 3, 5, 7, 11, 13 and so on. Every other whole number above 1 splits into equal groups, and is a product of primes.

Twelve dots as a 3 by 4 rectangle and as a 2 by 6 rectangle; seven dots in a single row 12 = 3 × 4 12 = 2 × 6 7 = 1 × 7 only
Twelve dots make a rectangle, 3 by 4 or 2 by 6, so 12 is not prime. Seven dots only make a single row, so 7 is.
The number of primes, drawn as a staircase, with a smooth estimate over it

How many primes so farA smooth estimate

Walk along the whole numbers and go up one step at every prime. Up close the staircase is irregular, and nobody can say where the next step will come. From far away it hugs a smooth curve. Why it does, and how tightly, is what these sixteen chapters are about.

How to read this

You need to know how to multiply and divide. Everything else, from logarithms to complex numbers, is introduced where it is first used, with a picture, and recalled at the top of every later page that relies on it. The formulas are the real ones, each with a sentence saying how to read it.

The sixteen chapters make one argument, and are best read in order. Each also stands on its own: it opens with the story so far, and closes with what to keep, the words it used and where to read more. The whole argument, in eight sentences:

  1. Chapter 0. Primes are the whole numbers that cannot be split into equal groups. There are infinitely many, and no formula lists them.
  2. Chapter 2. Arranged in triangles, spirals and grids they fall into lines. The lines come from divisibility by small numbers: they show where primes cannot be, not where they are.
  3. Chapter 6. Counted instead of located, they obey a law. Up to x there are about x ÷ ln x of them: the prime number theorem.
  4. Chapter 8. A better estimate is Gauss’s li(x), the sum of the chances 1 ÷ ln n. It gets about half the digits of the count right.
  5. Chapter 12. The proof, and the reason for “half”, run through a function of complex numbers: the zeta function, an endless sum over all whole numbers.
  6. Chapter 13. Zeta is also a product over the primes alone, so whatever is true of zeta is a statement about primes.
  7. Chapter 14. The points where zeta is zero each contribute a wave to the count. Added to the smooth estimate, the waves rebuild the primes one by one. Where exactly those zeros lie is the Riemann hypothesis.
  8. Chapter 15. Nobody can prove it. Trillions of checked cases do not count, and the last chapter shows what would.

Look

Wind the whole numbers into a spiral, a triangle or a grid instead of a line, and the primes gather into lines and curves. Each chapter shows one arrangement, who first drew it, and where its pattern comes from.

  1. The primes, in order What a prime is and why primes matter, then the primes laid out in a row: how to find them, why they never run out, how they thin out.
  2. Klauber’s triangle 1932 A herpetologist’s triangle of numbers, thirty-one years before anyone thought of a spiral.
  3. Ulam’s spiral 1963 A doodle during a boring talk, a computer at Los Alamos, and the diagonals nobody expected.
  4. Sacks’s spiral 1994 The same numbers on a smooth spiral, one square per turn, where the diagonals turn into curves.
  5. Polar plots Each prime at its own distance and its own angle, and the spiral arms that appear and vanish as you zoom out.
  6. Gaussian and Eisenstein primes Primes of other number systems, on the square grid and on the hexagonal one.

Count

The patterns only show where primes cannot be. Where they do fall, nothing predicts. But count them instead of finding them and a law appears: the prime number theorem, guessed by a teenager and proved a century later.

  1. How many primes? The staircase that counts the primes, the smooth curve it follows, and the theorem in one sentence.
  2. One digit more A census of the primes by length, the logarithm explained without algebra, and a window you can open anywhere up to 1024.
  3. Gauss’s guess 1792 Every number gets a chance of being prime; add up the chances and you get the count. Plus primes made by tossing coins.
  4. A century to prove it 1896 How the guess became a theorem, how big the error really is, and the day, far beyond any computer, when the estimate finally comes up short.

Listen

The law has errors, and the errors have a source: the zeros of Riemann’s zeta function. These chapters build that function from scratch, from numbers with a direction to the zeros that play the primes like a chord. The last one asks what it would take to prove the hypothesis they lead to.

  1. The zeta machine 1859 A machine of spinning arrows, one walk through it, and the zeros it passes on the way.
  2. Numbers with a direction Complex numbers as arrows: adding is chaining, multiplying is turning and stretching, and raising to an imaginary power makes a number spin.
  3. The sum that defines it 1734 Endless sums that settle and ones that never do, Euler’s π²/6, and the spiral of arrows that is the machine itself.
  4. Euler’s product 1737 Sieve the sum like Eratosthenes sieved the numbers and only the primes are left. The link between zeta and the primes, in one line.
  5. The map and its zeros Painting a function in colour, crossing the wall where the sum breaks down, the Riemann hypothesis, and the zeros playing the primes.
  6. What would a proof look like? Twelve trillion checked zeros and still no proof: why checking is not proving, how the first step was proved, and where people are looking for the rest.

Reference

Three pages that belong to no chapter and are linked from all of them.