Skip to content
Field Atlas

Atlas / Mathematics / The Number Theory Thread

Field · Emerged 1737 – 1896

Analytic Number Theory

How are the primes distributed, and why can calculus answer questions about whole numbers?

5 chapters4 min read7 turning points2 open problems

Branched from
Elementary Number Theory + Complex Analysis
Branched into
Arithmetic Geometry
Figures
Leonhard Euler, Carl Friedrich Gauss, Adrien-Marie Legendre, Peter Gustav Lejeune Dirichlet, Bernhard Riemann, Jacques Hadamard, Charles-Jean de la Vallée Poussin, Atle Selberg, Paul Erdős, Yitang Zhang, James Maynard

In brief

Analytic number theory uses the tools of calculus and complex analysis (limits, infinite series, functions of a complex variable) to study whole numbers, above all the primes. The primes look random one at a time, but in bulk they follow precise laws. Near a large number xx, roughly one number in ln⁡x\ln x is prime.

Its central object is the Riemann zeta function. The most famous open problem in mathematics, the Riemann hypothesis, is a statement about where that function's zeros lie, and it controls how closely the primes follow their predicted pattern.

Key ideas

Prime-counting functionEnters 1896

π(x)\pi(x) is the number of primes up to xx. The prime number theorem says π(x)∼x/ln⁡x\pi(x) \sim x / \ln x: the ratio tends to 1 as xx grows.

Riemann zeta functionEnters 1859

ζ(s)=1+12s+13s+⋯\zeta(s) = 1 + \frac{1}{2^s} + \frac{1}{3^s} + \cdots, extended by Riemann to almost all complex numbers ss. Its zeros encode the fine distribution of the primes.

Euler productEnters 1737

ζ(s)=∏p11−p−s\zeta(s) = \prod_{p} \frac{1}{1 - p^{-s}}, a product over all primes. It is the bridge between a smooth analytic function and the primes, which is why analysis can say anything about them.

L-functionsEnters 1837

Generalisations of the zeta function built from arithmetic data. Dirichlet introduced them to count primes in arithmetic progressions. They are now central throughout number theory.

Critical lineEnters 1859

The vertical line of complex numbers with real part 12\tfrac12. The Riemann hypothesis says every nontrivial zero of ζ\zeta lies on it.

Chapter I

Counting Primes with Calculus

Euclid proved the primes never end, but not how common they are. Leonhard Euler found the first link between primes and analysis in 1737. The infinite series 1+12s+13s+⋯1 + \frac{1}{2^s} + \frac{1}{3^s} + \cdots equals a product over all the primes,

∑n=1∞1ns=∏p prime11−p−s,\sum_{n=1}^{\infty} \frac{1}{n^s} = \prod_{p \text{ prime}} \frac{1}{1 - p^{-s}},

a consequence of unique factorisation written in the language of calculus. From it he deduced that the reciprocals of the primes, 12+13+15+17+⋯\frac12 + \frac13 + \frac15 + \frac17 + \cdots, add up to infinity. The primes are rare, but not too rare.

Half a century later, poring over tables, the teenage Gauss and Legendre each guessed the law: up to xx, about x/ln⁡xx/\ln x numbers are prime. In 1837 Dirichlet proved that primes are spread across all compatible arithmetic progressions, using new functions, now called L-functions, and the full machinery of analysis. The methods of elementary number theory had been left behind.

Chapter II

Riemann's Eight Pages

In 1859 Bernhard Riemann, better known for his work in geometry, wrote his only paper on number theory. Using the complex analysis he had developed in his thesis, he extended Euler's function to complex numbers, where it becomes the zeta function ζ(s)\zeta(s), and showed that the exact count of primes is determined by the locations of its zeros. The primes are, in a precise sense, a sum of waves whose frequencies are those zeros.

He also computed a few zeros and found them all on one vertical line. It was "very probable", he wrote, that all of them lie there, but he had put aside the search for a proof "after some fleeting vain attempts". That remark is the Riemann hypothesis.

Chapter III

The Theorem, Twice

Riemann's programme took nearly forty years to carry out. In 1896 Jacques Hadamard and Charles-Jean de la Vallée Poussin, working independently, proved that ζ\zeta has no zeros on the line with real part 1, and deduced the prime number theorem. Both lived past ninety, which prompted a joke that proving it grants long life.

Many believed the theorem was inseparable from complex analysis. In 1948–49 Atle Selberg and Paul Erdős found a proof using only elementary estimates, and then fell out bitterly over who deserved the credit.

Chapter IV

A Closer Look: How Good Is the Prediction?

The prime number theorem predicts that there are about x/ln⁡xx / \ln x primes up to xx. Gauss's refinement, the logarithmic integral li⁡(x)=∫0xdtln⁡t\operatorname{li}(x) = \int_0^x \frac{dt}{\ln t}, adds up the "probability" 1/ln⁡t1/\ln t that each number near tt is prime. Compare both with the true counts:

xxprimes up to xx, π(x)\pi(x)x/ln⁡xx / \ln xli⁡(x)\operatorname{li}(x)
10610^678,49872,38278,628
10910^950,847,53448,254,94250,849,235

Both estimates have the right growth, but li⁡(x)\operatorname{li}(x) is far better. Up to a billion it is off by about 1,700, where x/ln⁡xx/\ln x is off by more than two and a half million.

How large can the error π(x)−li⁡(x)\pi(x) - \operatorname{li}(x) get? That is exactly what the Riemann hypothesis controls. If it is true, the error never grows much faster than x ln⁡x\sqrt{x}\,\ln x, about the size of the fluctuations in a random walk of xx steps. At x=109x = 10^9 that scale is about 660,000. Lowell Schoenfeld's explicit form of the bound, 18πx ln⁡x\frac{1}{8\pi}\sqrt{x}\,\ln x, is about 26,000. The actual error is 1,701, well inside it. Riemann's explicit formula shows where the error comes from: each zero of the zeta function contributes a wave to the count of primes. Zeros on the critical line produce waves of the smallest possible size. A zero off the line would produce a larger wave, and the primes would be measurably less regular than they appear.

The table also hides a surprise. In every computed case li⁡(x)\operatorname{li}(x) overestimates π(x)\pi(x), and for a century it was assumed to always do so. In 1914 Littlewood proved that the two swap places infinitely often, but the first crossing lies beyond the range of any computer: somewhere below about 1031610^{316}, by current bounds.

Chapter V

Gaps and the Fog

The biggest questions remain. The Riemann hypothesis has resisted more than 160 years of attempts, even as trillions of zeros have been checked. The twin prime conjecture, that primes 2 apart never run out, looked hopeless until 2013. Then Yitang Zhang, a little-known lecturer who had once worked in a sandwich shop, proved that some fixed gap below 70 million occurs infinitely often. James Maynard and a worldwide online collaboration soon brought the bound down to 246. The last step, from 246 to 2, needs an idea no one yet has.

Applications

Where it is used

  • Quantum physics↗ Physics · Nuclear Structure

    Zeta zeros behave like quantum energy levels

    In 1972 Hugh Montgomery found that the spacings between zeta zeros follow a statistical law. Freeman Dyson recognised it at once as the law governing the energy levels of heavy atomic nuclei, as modelled by random matrices. Why the primes should behave like a quantum chaotic system is unexplained, and it inspires hopes of a physical route to the Riemann hypothesis.

    › Sources (1)
    • Montgomery, H. L. (1973). The pair correlation of zeros of the zeta function. Proceedings of Symposia in Pure Mathematics 24: 181–193.
  • Cryptography

    Finding large primes quickly

    Encryption keys need primes hundreds of digits long. The prime number theorem guarantees they are plentiful: about one in every 710 numbers near 210242^{1024} is prime, so testing random candidates finds one fast.

Open problems

Where the map runs out

Open

The Riemann hypothesis

Open since 1859; a Clay Millennium Prize Problem and one of Hilbert's 1900 problems.

All nontrivial zeros of the Riemann zeta function lie on the critical line, real part 12\tfrac12. Trillions of zeros have been checked by computer and every one lies on the line. Equivalently, the primes are distributed as regularly as they possibly could be: π(x)\pi(x) stays within about x ln⁡x\sqrt{x}\,\ln x of its predicted value.

Why it is hard

The zeta function is defined by an infinite series that stops converging exactly in the region where the zeros live. Known methods push the zero-free region only slightly beyond Hadamard's line. Hardy proved in 1914 that infinitely many zeros are on the critical line, and later work showed that at least 40% are, but not all. Many proposed approaches, such as finding the zeros as eigenvalues of some operator, have never been made to work.

What resolving it unlocks

Hundreds of published theorems are proved assuming it. A proof would upgrade them all and would sharpen nearly every estimate about how primes are spaced.

› Sources (1)
  • Bombieri, E. (2006). The Riemann hypothesis. In J. Carlson, A. Jaffe & A. Wiles (eds.), The Millennium Prize Problems: 107–124. Clay Mathematics Institute / AMS.

Open

The twin prime conjecture

Open as of 2026. Bounded gaps proved in 2013; the best unconditional gap is 246.

Are there infinitely many pairs of primes that differ by 2, like 11 and 13, or 101 and 103? They grow rarer but never seem to stop, and the largest known pair has hundreds of thousands of digits.

Why it is hard

Sieve methods, which count primes by crossing out multiples, run into the "parity problem": they cannot tell numbers with an even number of prime factors from those with an odd number, and a gap of exactly 2 falls on the wrong side of that barrier. Zhang and Maynard's methods get to 246, and, assuming stronger conjectures, to 6, but not to 2.

What resolving it unlocks

Breaking the parity barrier would be a methodological revolution, opening many other additive problems about primes, including Goldbach's.

› Sources (1)
  • Maynard, J. (2015). Small gaps between primes. Annals of Mathematics 181(1): 383–413.

Further reading

  1. Derbyshire, J. (2003). Prime Obsession: Bernhard Riemann and the Greatest Unsolved Problem in Mathematics. Joseph Henry Press.

    Alternates history chapters with gentle mathematical ones leading up to the Riemann hypothesis.

  2. du Sautoy, M. (2003). The Music of the Primes. HarperCollins.

    A popular history of the search for patterns in the primes.

  3. Apostol, T. M. (1976). Introduction to Analytic Number Theory. Springer.

    The standard first textbook, rigorous and self-contained.