The Cook Who Shook Mathematics — and the Mystery Waiting for You

The article tells the story of Yitang Zhang, an unknown mathematician working at Subway who in 2013 achieved a breakthrough in number theory by proving that there are bounded gaps between primes. It describes the subsequent work of Maynard and the Polymath project, which lowered the bound to 246, and maps out five independent lines of research (quantum physics, fractals, noncommutative geometry, partition functions, the Langlands program) that point to the existence of a deep structure behind the distribution of primes. The article also explains the practical importance of primes for cryptography and presents open problems, including the Riemann hypothesis.
Prime numbers conceal the greatest unsolved riddle of the universe. The latest breakthroughs show that the solution is closer than anyone thought. And to find it, you don't need a degree from Harvard.
In April 2013, a paper from a nobody arrived at the editorial office of the Annals of Mathematics — the most prestigious mathematical journal in the world. The author was named Yitang Zhang, he was 58 years old, and he worked at the University of New Hampshire as an ordinary lecturer. He had published nothing for twelve years. He had no grant, no research team, not even an office of his own.
But he had something else: a proof of something that for two millennia had been declared impossible.
Within three weeks — the blink of an eye by the pace of mathematical journals — the reviewers' verdict came back. "First-rate results," wrote one of them. In his view, the author had presented "a landmark theorem in the distribution of prime numbers." Andrew Granville, a leading number theorist from Montreal, reacted simply: "Basically nobody knows him. And all of a sudden he has proved one of the most important results in the history of number theory."
But the most remarkable thing about Zhang's story is not the proof itself. It is the path that led up to it.
Zhang grew up in Shanghai during Mao's Cultural Revolution. Schools were closing, teachers were being persecuted, and his father was not in good standing with the Communist Party. Instead of secondary school, he spent ten years as a laborer in the countryside. He learned mathematics on his own — from books he obtained by his own efforts.
After the revolution, he passed the national entrance examinations with one of the best results in the country and was admitted to Peking University, where he stood out as one of the top mathematics students. He moved on to a doctorate at Purdue in the United States. And there his career came to a halt. His relationship with his advisor fell apart, he received no letters of recommendation, and he found no academic work.
For eight years he worked various jobs — as an accountant, a delivery man, in a motel. For a time he slept in his car. Eventually an acquaintance offered him a job at a Subway restaurant in Lexington, Kentucky. Zhang kept the books and occasionally made sandwiches. In his free time he went to the University of Kentucky library and read scholarly journals on number theory.
In 1999, at the age of forty-four, he was given a lecturer position at the University of New Hampshire — the lowest rung of the academic ladder, with no prospect of a professorship. He taught popular calculus courses. Students called him "Tom." No one suspected what he was working on in his spare time.
And then, after years of quiet thinking — the last three of which he devoted to a specific problem about the gaps between prime numbers — he shook the foundations of mathematics.
To understand Zhang's breakthrough, you must first understand why prime numbers are so mysterious.
Prime numbers — 2, 3, 5, 7, 11, 13, 17, 19… — are numbers divisible only by one and by themselves. It sounds simple. Yet these innocent-looking numbers are the building blocks of all of mathematics. Every whole number greater than one can be factored into primes, and in only one way. The number 60 is always 2 × 2 × 3 × 5, no matter how you look at it.
The problem is that no one knows exactly where the prime numbers are located. We know there are infinitely many of them — Euclid proved that as far back as around 300 BC. We know approximately how quickly they thin out — that is told by the prime number theorem of 1896. But an exact formula? That we do not have. And therein lies the mystery.
Among the primes, pairs appear that lie close together. 11 and 13. 17 and 19. 29 and 31. They are called twin primes. The question, more than two hundred years old, is this: are there infinitely many such twins, or do they vanish at some point?
No one has proved it. But Zhang did something almost equally revolutionary. He proved that there exist infinitely many pairs of primes that differ by less than 70 million. For the first time in history, someone proved that prime numbers never stop "clustering" — that they do not fly off into infinity forever.
Seventy million sounds like a lot. But in mathematics it is a revolution. From infinity to any finite number is an abyssal leap.
And then something beautiful happened. Zhang's proof did not merely solve a problem — it inspired an entire community.
James Maynard, then a 26-year-old Oxford doctoral graduate working as a postdoc in Montreal, independently of Zhang developed a completely different method and lowered the bound to 600. The Polymath Project — a vast open collaboration of mathematicians from around the world, coordinated by Terence Tao, one of the greatest living mathematical minds — then pushed the number down to 246.
Today we know: there exist infinitely many pairs of primes that differ by at most 246. From Zhang's sandwich counter to the number 246 — in less than a year.
For his work in prime number theory, Maynard received the Fields Medal in 2022 — the mathematical equivalent of the Nobel Prize, awarded only to those under forty. He is now 38 and continues to push the boundaries. One of his results is a proof that there exist infinitely many primes that omit any chosen digit in their decimal expansion — say, the digit seven. That too sounds like a curiosity, but it is a breakthrough in sets of numbers so sparse that previously no one had been able to prove anything about them.
Zhang's story shows something fundamental: in mathematics, what decides is not prestige, age, or where you worked before. What decides is originality of thought and a willingness to work on something that seems impossible.
Here the story stops being the story of one person and becomes an expedition of all of humanity.
The question is: are prime numbers random? Or is there some deeper pattern behind their arrangement that we simply cannot yet read?
The answer from recent years of research is surprising: neither. Prime numbers have an order that is deeper than anything we yet fully understand — but this order so far resists being translated into a formula.
The key to the whole riddle lies in the work of Bernhard Riemann from 1859. Riemann discovered a function — today called the Riemann zeta function — that carries within it, encoded, information about all the primes at once. He showed that the distribution of the primes is given exactly by special points of this function, the so-called "zeros." Each zero adds one "wave," and the superposition of all these waves together produces the precise pattern of the primes.
It is as if you played all the notes on a piano at once — the resulting sound seems chaotic, but each individual note is perfectly pure.
Riemann conjectured that all these zeros lie on a single line — the so-called "critical line." If he is right, it means that prime numbers have the maximum possible order. If he is wrong, there are hidden irregularities of which we know nothing.
The Riemann hypothesis is the most famous unsolved problem in mathematics. The Clay Mathematics Institute offers a million dollars for its solution. Since 1859 — 167 years — no one has proved it or disproved it.
And now the most interesting part. In recent years, evidence has been accumulating that behind the prime numbers there hides a gigantic mathematical structure — something that different areas of mathematics see from different sides, like blind men feeling an elephant.
Clue one: quantum physics. The statistics of the zeros of the Riemann zeta function match exactly the statistics of the energy levels of quantum systems. Specifically, systems from the so-called GUE — the Gaussian Unitary Ensemble. This is a mathematical model describing how the eigenvalues of large random matrices behave. In 1972, during an afternoon break at the Institute for Advanced Study in Princeton, the mathematician Hugh Montgomery showed the physicist Freeman Dyson his calculations of the correlations between the zeros of the zeta function. Dyson immediately recognized that it was the very same pair correlation that physicists knew for the eigenvalues of random matrices. From that moment on, this discovery has been regarded as one of the deepest in all of mathematics.
Put simply: prime numbers behave as if they were the spectrum of some quantum system. What remains is to find that system.
Clue two: fractals and chaos. Adam Harper of the University of Warwick, in a series of papers culminating in 2025, showed that the distribution of primes in short intervals has the structure of so-called Gaussian multiplicative chaos — a mathematical object we find in turbulent fluid flow or in quantum gravity. Prime numbers are self-similar across different scales — the same type of "pattern" repeats whether you look at the primes up to a million or up to a quadrillion.
Clue three: noncommutative geometry. Alain Connes, a Fields Medalist, reformulated the entire prime-number riddle into the language of geometry — but a geometry in which the order of operations matters (noncommutative). In his treatment, the zeros of the zeta function become an "absorption spectrum" — like the dark lines in the spectrum of starlight that reveal a star's chemical composition.
Clue four: partitions of numbers. Ken Ono of the University of Virginia, in 2024 together with William Craig and Jan-Willem van Ittersum, discovered that prime numbers can be recognized by means of partition functions — purely additive objects that seemingly have nothing to do with multiplication. Their equations work in such a way that their solutions are exactly and only the prime numbers. As if you found that you could determine the color of light by weighing it.
Clue five: the Langlands program. In 2024, nine mathematicians led by Dennis Gaitsgory proved the geometric Langlands conjecture — a piece of what Robert Langlands called the "grand unified theory of mathematics." This program connects areas that look entirely unrelated — number theory, geometry, symmetries — and suggests that they are all manifestations of one deep structure.
Five independent lines of research, five different languages — and all pointing to the same thing: behind the prime numbers stands something we cannot yet describe, but which has the properties of a quantum system, a fractal structure, and an enormous symmetry.
There are two reasons. A practical one and a human one.
The practical one: the entire internet rests on prime numbers. Every time you enter a password, send a message, or pay with a card, your data is protected by encryption based on the fact that no one knows how to quickly factor a large number into its prime factors. If someone found an efficient method of factorization, digital security would collapse — banking, communications, state secrets. That is why post-quantum cryptography is being built today — because quantum computers might one day overcome this barrier.
The human reason is deeper. The mathematics of prime numbers shows that even the simplest question — "which number is divisible only by one and by itself?" — leads into an abyss so deep that humanity cannot explore it even after millennia. And at the same time it shows that progress comes from unexpected places.
Zhang, who made sandwiches at Subway. Ramanujan, the self-taught Indian who at the start of the 20th century sent letters from Madras to Cambridge containing formulas no one understood — formulas that a hundred years later turned out to be crucial for the theory of black holes. Maynard, who received the Fields Medal at thirty-five. Luke Durant, a former Nvidia employee who in October 2024, using a cloud network of graphics processors across 17 countries, found the largest known prime number — a number with 41 million digits.
In mathematics there is no age limit, no price barrier, and no entry qualification. There is only a question — and your willingness to follow it.
If you wanted to know where the "open doors" are today — the places where a breakthrough could come from anyone:
The Riemann hypothesis — a million dollars and immortality. Verified for trillions of zeros, but a proof is missing. In 2024, Guth and Maynard, for the first time in more than 80 years, substantially improved Ingham's estimate for the density of the zeta function's zeros — but a complete proof is still far off.
The twin prime conjecture — are there infinitely many pairs of primes with a gap of 2? Zhang's bound now stands, thanks to the Polymath Project, at 246. Lowering it to 2 would require a fundamentally new idea.
The Goldbach conjecture — is every even number greater than 2 the sum of two primes? Verified up to 4 × 10^18. The weak version (three primes) was proved by Harald Helfgott in 2013. The strong version remains open.
The link between physics and prime numbers — finding a self-adjoint operator whose spectrum corresponds to the zeros of the zeta function (the so-called Hilbert–Pólya conjecture). In 2024, Enderalp Yakaboylu published a concrete candidate for such an operator. A proof of full self-adjointness, however, is missing.
A classical analogue of Shor's algorithm — Shor's quantum algorithm factors whole numbers into their factors in polynomial time. Is there a classical route to the same result? Thirty years of searching have found nothing — but no one has proved that it is impossible.
Here is the thing that mathematics textbooks will not tell you: mathematics is not a finished building you go into to learn facts. It is a jungle full of unexplored regions, where at every step you run into something no one understands.
Prime numbers are the purest example of this. The simplest possible definition — "a number divisible only by one and by itself" — and yet a mystery so deep that it connects quantum physics, fractals, noncommutative geometry, and the theory of random matrices.
Behind the distribution of the primes looms the shadow of a gigantic mathematical structure — something like a blurred inscription behind frosted glass. From many sides we see its outlines. From no side can we read it.
Yitang Zhang spent years at Subway and at the bottom of the academic ladder. No one knew about him. No one supported him. And then one day he wrote a proof that changed the history of mathematics.
The next breakthrough can come from anywhere. It can come from you.
Transparency of Authorship
The concept, structure, and editorial line of the article are the work of the author, who prepared the content outline, established the key theses, and directed the entire creative process. Generative AI (Claude Opus 4.6, Anthropic) was used as a tool for research, fact-checking, and fleshing out the author's draft.
The author verified the key findings and approved the final wording. No part of the text was published without deliberate authorial oversight. The factual data were verified against the publicly available sources cited in the text.
This procedure complies with the transparency principles of EU Regulation 2024/1689 (the AI Act). #poweredByAI
Read the Czech original on Médium.cz.
AI · Claude — machine translation, may contain inaccuracies.