Search

Search papers and lessons

Bombieri-Vinogradov Theorem

Level 4 · 13 min read

The Bombieri-Vinogradov theorem says primes are spread evenly across residue classes on average over all moduli up to about the square root of x, which is far more than any single modulus can show.

On this page

  • Colour = topic mix
  • Discrete math
  • Calculus
  • ReadReady to readNot yet

TL;DR

This is a note on how evenly primes are spread across residue classes. Dirichlet's theorem says every allowed class a mod qa \bmod q contains infinitely many primes, and the prime number theorem says the primes thin out like x/log⁡xx / \log x. The Bombieri-Vinogradov theorem says that, on average over all moduli qq up to roughly x\sqrt{x}, the primes in each class are close to their fair share. That is a statement about the whole range of moduli, and it is far stronger than what any single modulus can show.

Builds on: Prime Number Theorem, Primes in Arithmetic Progressions, Euler's Totient Function · Leads to: large sieve methods, sieve bounds for small gaps between primes, and the bounded gaps between primes results.

Where it's used

Sieve bounds for prime patterns. Many questions ask how many primes fall in a set with a pattern, such as twin primes. Sieve methods (see a classic example) remove numbers with small prime factors and count what remains, and to do that they need the primes in many residue classes at once. The Bombieri-Vinogradov theorem supplies that control for moduli up to the square-root range, so it is the standard input to sieve arguments of this kind.

Small gaps between primes. The 2013 breakthrough of Zhang showed that there are infinitely many pairs of primes that differ by at most 70 million. Zhang needed the distribution of primes in a special family of moduli that reaches beyond the square-root range, which the theorem alone does not give. Later work by Maynard reached a bound of 600 with a different sieve and the square-root range, and this is the setting the bounded-gaps papers build on.

Additive problems about primes. Results that write an even number as a sum of a prime and a number with few prime factors, such as Chen's theorem of 1973, use the average distribution of primes in progressions to control the error terms. The theorem replaces a question about each modulus with one about the average, which is usually all the argument needs.

How it works

Fix a large number xx. Look at every modulus qq up to a limit QQ a little below x\sqrt{x}. For each qq, the allowed residue classes aa are those with gcd⁡(a,q)=1\gcd(a, q) = 1 (see gcd), and the fair share of the primes in each class is the total divided by φ(q)\varphi(q). The question is how large the errors are when you add them up over all moduli.

flowchart LR
  X["Fix a large x"] --> M["Take every modulus q up to Q"]
  M --> C["Count primes in each allowed class a mod q"]
  C --> E["Error = count minus fair share"]
  E --> B["Largest error for each q"]
  B --> S["Add the largest errors over all q up to Q"]
  S --> R["Bound: small compared with x over a power of log x"]
  1. Fix xx and a modulus. Take q=4q = 4 and x=30x = 30. Check: the allowed classes are 11 and 33, the odd residues, since gcd⁡(a,4)=1\gcd(a, 4) = 1 only for those.
  2. Count primes in each class. Among the primes 3,5,7,…,293, 5, 7, \dots, 29 that are not divisible by qq, the classes give 44 primes in class 1 (5,13,17,295, 13, 17, 29) and 55 in class 3 (3,7,11,19,233, 7, 11, 19, 23). Check: the two counts add to the nine primes in the set.
  3. Compare with the fair share. The fair share is 9/2=4.59 / 2 = 4.5 for each class. The errors are 4−4.5=−0.54 - 4.5 = -0.5 and 5−4.5=+0.55 - 4.5 = +0.5. Check: the errors add to zero, because the fair share is exact in total.
  4. Take the worst class. For this modulus the largest error is 0.50.5. Check: the error is measured for each class and the largest is kept.
  5. Repeat for every modulus up to QQ, and add. The theorem bounds this sum, not each term. Check: for a single modulus a large error can happen, but a bad modulus is rare among the many up to QQ.
  6. Compare the total with xx. The total error is at most a constant times x/(log⁡x)Ax / (\log x)^A, for any fixed AA you choose, provided QQ is at most x\sqrt{x} divided by a power of log⁡x\log x. Check: this is much smaller than the primes counted, which are about x/log⁡xx / \log x.

The tiny case in steps 1 to 4 counts primes rather than the weighted version the theorem uses. The weighted version is cleaner to prove, but the counts show the same effect.

The math

Setting

Let Λ(n)\Lambda(n) be the von Mangoldt function: Λ(n)=log⁡p\Lambda(n) = \log p if nn is a power pkp^k of a prime pp, and Λ(n)=0\Lambda(n) = 0 otherwise. Define

ψ(x)=∑n≤xΛ(n),ψ(x;q,a)=∑n≤xn≡a (mod q)Λ(n).\psi(x) = \sum_{n \le x} \Lambda(n), \qquad \psi(x; q, a) = \sum_{\substack{n \le x \\ n \equiv a \ (\mathrm{mod}\ q)}} \Lambda(n).

The function ψ(x)\psi(x) is the weighted count of prime powers up to xx, and ψ(x;q,a)\psi(x; q, a) counts only those in the class a mod qa \bmod q. The number φ(q)\varphi(q) is Euler's totient, the number of allowed classes when gcd⁡(a,q)=1\gcd(a, q) = 1. The fair share of the prime powers in each allowed class is ψ(x)/φ(q)\psi(x)/\varphi(q). The error for the class is

E(x;q,a)=ψ(x;q,a)−ψ(x)φ(q).E(x; q, a) = \psi(x; q, a) - \frac{\psi(x)}{\varphi(q)}.

Step 1 in symbols: the modulus and its classes

For a modulus qq, let the set of allowed residue classes be {a:1≤a≤q, gcd⁡(a,q)=1}\{a : 1 \le a \le q,\ \gcd(a, q) = 1\}. This set has φ(q)\varphi(q) elements. In the tiny example q=4q = 4, the set is {1,3}\{1, 3\} and φ(4)=2\varphi(4) = 2.

Step 2 in symbols: the worst class for each modulus

For each modulus, record the largest error over its classes,

M(q)=max⁡1≤a≤qgcd⁡(a,q)=1∣E(x;q,a)∣.M(q) = \max_{\substack{1 \le a \le q \\ \gcd(a,q) = 1}} \big|E(x; q, a)\big|.

This is the quantity the theorem sums. Taking the maximum means the bound holds for every class at once.

Step 3 in symbols: the theorem

The theorem says: for every A>0A > 0 there is a B=B(A)>0B = B(A) > 0 such that, with

Q=x(log⁡x)B,Q = \frac{\sqrt{x}}{(\log x)^{B}},

the sum of the worst errors over the moduli is small,

∑q≤QM(q)≪Ax(log⁡x)A.\sum_{q \le Q} M(q) \ll_A \frac{x}{(\log x)^{A}}.

The symbol ≪A\ll_A means "at most a constant, depending only on AA, times". The power AA is chosen first and then BB is found from it. The total error is smaller than xx by any chosen power of log⁡x\log x, so it is negligible next to the main term ψ(x)≈x\psi(x) \approx x.

Step 4 in symbols: why the square root appears

The square-root range is the natural one. Under the Generalised Riemann Hypothesis, the error for each single modulus is of size about x\sqrt{x} times a power of log⁡x\log x, so the moduli up to x\sqrt{x} are the ones that can be controlled. The Bombieri-Vinogradov theorem reaches the same range on average, without assuming the hypothesis, at the cost of the (log⁡x)B(\log x)^{B} loss in the range of qq. That is why the theorem is often described as the Generalised Riemann Hypothesis on average.

Worked examples

Example
1. Tiny: primes mod 4 up to 30
  1. Take x=30x = 30 and q=4q = 4. The allowed classes are 11 and 33.
  2. The primes up to 30 that are not 22 are 3,5,7,11,13,17,19,23,293, 5, 7, 11, 13, 17, 19, 23, 29, which is nine primes. These are the primes not dividing qq.
  3. The primes in class 1 are 5,13,17,295, 13, 17, 29, so the count is 44.
  4. The primes in class 3 are 3,7,11,19,233, 7, 11, 19, 23, so the count is 55.
  5. The fair share is 9/2=4.59 / 2 = 4.5 for each class, so the errors are −0.5-0.5 and +0.5+0.5.
  6. Interpretation: each class is within half a prime of its fair share. At this size the errors are as small as they can be, since the counts are whole numbers.
Example
2. Standard: primes mod 5 up to 100
  1. Take x=100x = 100 and q=5q = 5. The allowed classes are 1,2,3,41, 2, 3, 4.
  2. Every prime up to 100 except 55 is in the set, which gives 2424 primes, so the fair share is 24/4=624 / 4 = 6 per class.
  3. The primes in class 1 are 11,31,41,61,7111, 31, 41, 61, 71, so the count is 55.
  4. The primes in class 2 are 2,7,17,37,47,67,972, 7, 17, 37, 47, 67, 97, so the count is 77.
  5. The primes in class 3 are 3,13,23,43,53,73,833, 13, 23, 43, 53, 73, 83, so the count is 77.
  6. The primes in class 4 are 19,29,59,79,8919, 29, 59, 79, 89, so the count is 55.
  7. The errors are −1,+1,+1,−1-1, +1, +1, -1, which sum to zero, and the largest is M(5)=1M(5) = 1.
  8. Interpretation: each class is within one prime of its fair share. Summing M(q)M(q) over all moduli up to about 100=10\sqrt{100} = 10 would give the quantity the theorem bounds.
Example
3. Realistic: how far the moduli reach

Suppose you need the average error for all moduli up to Q=x/(log⁡x)2Q = \sqrt{x} / (\log x)^{2}, with B=2B = 2. These numbers are illustrative.

  1. At x=1012x = 10^{12}, x=106\sqrt{x} = 10^{6} and log⁡x=ln⁡(1012)≈27.63\log x = \ln(10^{12}) \approx 27.63.
  2. Then (log⁡x)2≈763.4(\log x)^{2} \approx 763.4, so Q≈106/763.4≈1,310Q \approx 10^{6} / 763.4 \approx 1{,}310. Here log⁡\log is the natural Logarithm.
  3. The theorem therefore controls the average over the moduli q≤1,310q \le 1{,}310, which is about a thousandth of x\sqrt{x} with the log loss included.
  4. At x=1016x = 10^{16} the same choice gives x=108\sqrt{x} = 10^{8} and ln⁡(1016)≈36.84\ln(10^{16}) \approx 36.84, so (log⁡x)2≈1,357(\log x)^{2} \approx 1{,}357.
  5. Interpretation: the usable range of moduli grows like x\sqrt{x}, but the log loss keeps it below. For very large xx the range is large in absolute terms, while the fraction of x\sqrt{x} it covers stays small.

Try it: at x=1016x = 10^{16} with B=2B = 2, what is QQ? Answer: Q=108/1,357≈73,700Q = 10^{8} / 1{,}357 \approx 73{,}700.

Common mistakes and tradeoffs

It is tempting to think the theorem says primes are equally spread in every class for every modulus up to x\sqrt{x}. In fact it is an average over moduli, with a (log⁡x)B(\log x)^{B} loss in the range. A single bad modulus is allowed, as long as the total of the worst errors is small.

It is tempting to think the theorem gives the exact count for one specific modulus. In fact it bounds a sum, and one modulus can have an error that the bound does not control in isolation. For a single modulus, the result of Siegel and Walfisz, which covers moduli up to a fixed power of log⁡x\log x, is more precise. It is a separate statement and gives a much better error for that small range.

It is tempting to think the theorem removes the need for the Riemann hypothesis. In fact it gives the Riemann hypothesis's size of error on average, without assuming it. Results that need the error for every modulus, or for moduli beyond the range, still need more.

NeedBombieri-VinogradovAlternative
Average over many moduli up to about x\sqrt{x}Right tool, unconditionalNone as strong in this range
One small modulus, precise countOverkillSiegel-Walfisz, precise for small qq
Every modulus, individual boundsNot enoughGeneralised Riemann Hypothesis, if it can be assumed
Moduli beyond the square-root rangeOut of reachSpecial families of moduli, as in Zhang's work

Use the theorem when a sieve or an additive problem needs the primes in many classes at once. Do not use it to get a precise count for one modulus.

History

In 1965, Enrico Bombieri and A. I. Vinogradov proved the theorem independently. Bombieri's proof used the large sieve, an inequality that controls averages of exponential sums over many frequencies, and Vinogradov worked with the density of zeros of Dirichlet L-functions. The two routes reached the same average-distribution statement, which is why the name carries both. Chen's theorem of 1973 used the average distribution of primes in progressions to show that every large even number is a prime plus a number with at most two prime factors. Goldston, Pintz and Yildirim later used a version of the same idea in their work on small gaps, and in 2013 Zhang showed that there are infinitely many pairs of primes with bounded difference (the bounded-gaps results), using moduli beyond the square-root range. The average distribution of primes in progressions is therefore both a classical tool and the starting point for much of the modern theory of primes.

Recap

  • Dirichlet's theorem says each allowed class contains infinitely many primes, and the prime number theorem says how many there are up to xx.
  • The Bombieri-Vinogradov theorem bounds the sum over moduli q≤x/(log⁡x)Bq \le \sqrt{x}/(\log x)^{B} of the worst error in the primes of each class, and the bound is x/(log⁡x)Ax / (\log x)^{A} for any fixed AA.
  • The theorem is unconditional, and it works on average over the moduli, not for each one.
  • It is the standard input to sieve arguments and to additive problems about primes, and it is the square-root range that small-gap results later extended.
  • Read next: Large Sieve Inequality for the tool used in the original proof, and Small Gaps Between Primes for how the theorem feeds into bounded gaps between primes.

Check yourself

QuestionRecall: what does the Bombieri-Vinogradov theorem bound, and over which moduli?Show answer
It bounds the sum, over all moduli qq up to about x/(log⁡x)B\sqrt{x}/(\log x)^{B}, of the largest error between the count of prime powers in an allowed residue class and its fair share ψ(x)/φ(q)\psi(x)/\varphi(q). The bound is a constant times x/(log⁡x)Ax/(\log x)^{A}, and the power AA can be chosen in advance. It is an average over the moduli, not a bound for each one.
QuestionComputation: for x=30x = 30 and q=4q = 4, the classes 1 and 3 contain 4 and 5 of the nine odd primes up to 30. What are the errors, and what is the largest one?Show answer
The fair share is 9 divided by 2, which is 4.5. The errors are 4 minus 4.5, which is -0.5, and 5 minus 4.5, which is +0.5. The largest absolute error is 0.5.
QuestionWhy: why does the theorem need an average over moduli rather than a bound for each modulus?Show answer
Showing that primes are evenly spread for every single modulus up to the square root of x is beyond current methods without assuming the Generalised Riemann Hypothesis. The average over moduli is what the unconditional method can reach, and the sieve arguments that use the theorem only need the total error to be small, not each term. A single modulus can have a poor error, but it is rare among the many moduli up to the bound.
QuestionApplied: a sieve argument needs prime counts in every residue class for moduli up to 1,000 at x = 10 to the 12. Is the Bombieri-Vinogradov theorem enough, and what would you check?Show answer
At x = 10 to the 12, the theorem's range is about 1,310 moduli with B = 2, so moduli up to 1,000 fall inside it, but the argument must use the average over moduli rather than a bound for each one. I would check that the argument's error terms can be written as sums over moduli of the worst class error, since the theorem bounds only that sum. I would also check the constant B that goes with the power A the argument needs, because a larger A forces a smaller range. If the argument needs a bound for a single modulus, the theorem is not enough, and I would look for a result for that modulus directly.

Sources