zeros of zeta

small, working machines for big ideas

Each page here takes one idea from mathematics, science or philosophy and builds it from scratch, right in your browser. Then it hands you the controls. Drag the sliders, step it one move at a time, break it, and watch what happens. You don't need to know anything to start: every page begins with something a child could do and follows it as far as it goes.

Why the name? It comes from the first page. The zeros of the zeta function are where a sum anybody can write down turns into the deepest open question about the prime numbers. That's the kind of trip every page here tries to take.

every page starts with something simple and follows it all the way to the frontier

025501020304050primes, counted as a staircase ψ(x)rebuilt from 58 zeros of ζ
The black staircase steps up at every prime. The red curve is a straight line plus one wave for each of the first 58 zeros of ζ, and it lands on every step. The zeros know where the primes are. Chapter 6 lets you add the waves one at a time.

mathematics · 1735 → today · 6 chapters

zeros of zeta

Add up 1/ns. Follow the sum into the complex plane. Its zeros, played together like notes, rebuild the primes.

We start with a puzzle anyone can state, adding up some fractions, and follow it step by step to the most famous unsolved problem in mathematics. Along the way you'll see why it is really a question about the prime numbers.

start at chapter 1 ▸
untrained · loss 2.56<s>thedogsitsontherug0 <s>1 the2 dog3 sits4 on5 the6 rugtrained · loss 0.27<s>thedogsitsontherug0 <s>1 the2 dog3 sits4 on5 the6 rug
To guess “rug”, the second “the” (row 5) must find the animal, and nobody tells it where to look. Untrained, it looks almost everywhere. After 1,500 steps of training, it looks straight at “dog”. On the way there, it spends a while staring at “on” instead: train it yourself and watch.

machine learning · 1 machine, 4 ways to run it

a transformer, one token at a time

It reads one token, puts a key and a value on a shelf, guesses the next token, and moves on. That's all a transformer does, over and over.

Forget the giant matrices. This one is tiny and real, and it learns while you watch. Step through it one token at a time with its pseudocode lit up beside it, then give it cross-attention and teach it to translate German.

traininginference GPT: self-attentiontrain it ▸run it ▸ translator: + cross-attentiontrain it ▸run it ▸
open the machine ▸

physics · philosophy · whatever refuses to make sense next

the next page

Not written yet. Like the empty slot at the end of the transformer's token tape, it's waiting for whatever comes next.