Elementary Distribution of Primes

How many primes lie below a given number? How thickly are they scattered among the integers? This question sounds simple. Yet it drives directly to the heart of number theory. The primes obey no simple formula. No polynomial produces only primes. Their individual appearance seems erratic. Yet in bulk they follow a strikingly smooth law. The function that counts them, written π(x)\pi(x), is the central object of this article. Understanding its behavior is the bridge between two facts. First, the qualitative fact that there are infinitely many primes (established via The Infinitude of Primes). Second, the quantitative question of how many appear up to any given bound. The big picture is a tension between rigidity and chaos. On one hand, gaps between consecutive primes can be arbitrarily large. We prove this outright. On the other hand, Bertrand's Postulate shows the primes cannot thin out too fast. There is always a fresh prime between nn and 2n2n. Sitting above both of these elementary facts is the Prime Number Theorem. It is the deepest statement in this article. It asserts that π(x)\pi(x) is asymptotic to x/log⁡xx/\log x. That theorem's full proof requires complex analysis. It lies beyond elementary methods. But its statement, its meaning, and strong elementary bounds toward it are entirely within reach here. These bounds are Chebyshev-type estimates. This matters because the distribution of primes is not a curiosity. It governs the difficulty of factoring integers, hence cryptography. It governs the density of possible RSA keys. It governs the frequency of hash collisions built from prime moduli. It governs countless combinatorial identities involving prime factorizations. Understanding how primes thin out, in a precise asymptotic sense, matters greatly. It is a prerequisite to almost every quantitative question one could ask about integers. This article gives the rigorous definition of π(x)\pi(x). It proves elementary bounds sandwiching it up to constant factors. This is Chebyshev's theorem, proved via binomial coefficients. It states and proves Bertrand's Postulate in full. It states the Prime Number Theorem precisely. It explains, without proof, why the theorem is true and why it is hard. Every claim is either proved outright or explicitly flagged as stated without proof.

Key takeaways
  • π(x)\pi(x) counts primes ≤x\le x; it is a step function that jumps by 11 at each prime.
  • Chebyshev's elementary estimate: π(x)\pi(x) is bounded above and below by constant multiples of x/log⁡xx/\log x, proved via binomial coefficients.
  • Bertrand's Postulate: for every integer n≥1n \ge 1, there is a prime pp with n<p≤2nn < p \le 2n — proved completely here using Chebyshev-type bounds.
  • Prime gaps can be made arbitrarily large: the numbers n!+2,…,n!+nn!+2,\dots,n!+n give n−1n-1 consecutive composites.
  • The Prime Number Theorem states π(x)∼x/log⁡x\pi(x) \sim x/\log x as x→∞x\to\infty; it is stated precisely but not proved (its proof needs complex analysis).
  • Key idea: primes are individually unpredictable but collectively obey a precise asymptotic law, sandwiched from both sides by elementary combinatorial estimates.

Where this lives today

The elementary bounds and Bertrand's Postulate remain workhorses in combinatorics and algorithm design: Bertrand's Postulate is used, for instance, to show that a prime can always be found in a range small enough to make certain randomized algorithms (e.g., primality-based hashing schemes, or constructions requiring a prime near a given magnitude) terminate quickly. In cryptography, understanding how densely primes are packed near a given bit-length — governed asymptotically by the Prime Number Theorem — determines how many candidate integers must be tested (via primality tests such as Miller–Rabin) before a suitably-sized prime is found for RSA key generation; the heuristic "probability 1/log⁡x1/\log x" directly estimates expected trial counts. In analytic number theory itself, Chebyshev-type bounds and Bertrand's Postulate serve as elementary stepping stones and sanity checks before deploying the full analytic machinery of LL-functions to study primes in arithmetic progressions (Dirichlet's theorem) or finer gap statistics. In computer science, the existence of a prime in every interval (n,2n](n,2n] underlies certain data structure resizing strategies (choosing table sizes that are prime and roughly double previous capacity), and the general density heuristic underlies expected-runtime analyses of algorithms that search for primes by trial division.

:::faq[Does Bertrand's Postulate tell us the smallest prime above nn, or just that one exists somewhere in (n,2n](n,2n]?] Only existence, not location. Bertrand's Postulate is purely an existence statement: it guarantees at least one prime lies in (n,2n](n,2n], but says nothing about where in that range it falls. In practice, primes tend to appear much closer to nn than to 2n2n — for instance the smallest prime above 100100 is 101101, far from the upper bound 200200. Determining sharp bounds on the actual smallest prime gap above a given nn is a much harder question (related to results on prime gaps far beyond the scope of Bertrand's elementary argument), and remains partly open in full generality even today.

Ask the tutor: How does the proof of the Prime Number Theorem actually use the Riemann zeta function to convert Chebyshev's constant-factor bracket into an exact asymptotic ratio of 1?

DefinitionThe prime-counting function and asymptotic notation

For a real number x≥0x \ge 0, define

π(x)=#{p≤x:p is a prime}.\pi(x) = \#\{p \le x : p \text{ is a prime}\}.

Thus π(x)\pi(x) is a non-decreasing, integer-valued step function, right-continuous, with π(x)=0\pi(x)=0 for x<2x<2, and π(x)→∞\pi(x) \to \infty as x→∞x \to \infty (this last fact is exactly the infinitude of primes, The Infinitude of Primes). For two functions f,g:[a,∞)→Rf,g:[a,\infty)\to \mathbb{R} with g(x)>0g(x)>0 eventually, we write:

  • f(x)=O(g(x))f(x) = O(g(x)) if there exist constants C>0C>0 and x0x_0 such that ∣f(x)∣≤Cg(x)|f(x)| \le C g(x) for all x≥x0x \ge x_0.
  • f(x)∼g(x)f(x) \sim g(x) as x→∞x\to\infty if lim⁡x→∞f(x)g(x)=1\displaystyle\lim_{x\to\infty} \frac{f(x)}{g(x)} = 1.

A prime gap is a difference pn+1−pnp_{n+1}-p_n between consecutive primes pn<pn+1p_n < p_{n+1}.

Intuition

Picture the integers laid out on a line, with primes marked as ticks. Near the start they are dense — 2,3,5,7,11,13,…2,3,5,7,11,13,\dots — but as we move right, composite numbers (multiples of small primes) crowd them out, and on average the ticks should get rarer. The prime-counting function π(x)\pi(x) is simply the running tally of ticks seen so far; it is a staircase that climbs by exactly one step at each prime and is flat everywhere else. The heuristic behind the Prime Number Theorem is a density argument: a "random" integer near xx has roughly a 1/log⁡x1/\log x chance of being prime, because the "probability" that xx is not divisible by a prime qq is 1−1/q1-1/q for each small prime, and multiplying these probabilities (Mertens-type heuristics) produces a decay rate of order 1/log⁡x1/\log x. Multiplying that density by the length of the interval [1,x][1,x] suggests π(x)≈x/log⁡x\pi(x) \approx x/\log x. This is only a heuristic — turning it into a theorem is one of the great achievements of 19th-century analysis — but it correctly predicts the shape of the answer. Bertrand's Postulate is a much coarser, purely combinatorial statement: primes cannot vanish over long stretches, because there is always one hiding in any interval that doubles in size. The proof does not need any deep density estimate; it needs only careful control of the prime factorization of the central binomial coefficient (2nn)\binom{2n}{n}, which is itself entirely elementary.

Figure
The staircase π(x)\pi(x) climbing at each prime, compared to x/log⁡xx/\log x
x π(x) 2 5 11 23 x / log x π(x)
TheoremChebyshev's Estimate

There exist absolute constants c1,c2>0c_1, c_2 > 0 such that for all integers x≥2x \ge 2,

c1xlog⁡x≤π(x)≤c2xlog⁡x.c_1 \frac{x}{\log x} \le \pi(x) \le c_2 \frac{x}{\log x}.
Proof

We use the prime factorization of the central binomial coefficient

N=(2nn)=(2n)!n! n!,N = \binom{2n}{n} = \frac{(2n)!}{n!\,n!},

for a positive integer nn, and standard bounds on how it grows.

Step 1: Bounding NN from above and below by elementary counting. Since NN is one of the 2n+12n+1 terms in the binomial expansion of (1+1)2n=22n(1+1)^{2n} = 2^{2n}, and it is (one of) the largest such term(s) — the binomial coefficients (2nk)\binom{2n}{k} increase up to k=nk=n and decrease afterward, by the ratio test (2nk+1)/(2nk)=(2n−k)/(k+1)\binom{2n}{k+1}/\binom{2n}{k} = (2n-k)/(k+1) — we get

N≤22n.N \le 2^{2n}.

For a lower bound, since the sum of all 2n+12n+1 binomial coefficients is 22n2^{2n} and N=(2nn)N=\binom{2n}{n} is the largest term,

(2n+1)N≥22n,soN≥22n2n+1≥22n2n+1.(2n+1) N \ge 2^{2n}, \qquad \text{so} \qquad N \ge \frac{2^{2n}}{2n+1} \ge \frac{2^{2n}}{2n+1}.

Step 2: The exact prime factorization of NN. For each prime p≤2np \le 2n, Legendre's formula gives the exponent of pp in m!m! as

vp(m!)=∑i=1∞⌊mpi⌋,v_p(m!) = \sum_{i=1}^{\infty} \left\lfloor \frac{m}{p^i} \right\rfloor,

(a finite sum, since terms vanish once pi>mp^i>m). Hence the exponent of pp in NN is

vp(N)=∑i=1∞(⌊2npi⌋−2⌊npi⌋).v_p(N) = \sum_{i=1}^{\infty}\left( \left\lfloor \frac{2n}{p^i}\right\rfloor - 2\left\lfloor \frac{n}{p^i}\right\rfloor\right).

Each individual term ⌊2t⌋−2⌊t⌋\lfloor 2t \rfloor - 2\lfloor t \rfloor (with t=n/pit = n/p^i) is either 00 or 11, because writing t=⌊t⌋+{t}t = \lfloor t\rfloor + \{t\} with fractional part {t}∈[0,1)\{t\} \in [0,1),

⌊2t⌋−2⌊t⌋=⌊2{t}⌋∈{0,1}.\lfloor 2t\rfloor - 2\lfloor t\rfloor = \lfloor 2\{t\}\rfloor \in \{0,1\}.

Also, the sum has at most ⌊log⁡(2n)/log⁡p⌋\lfloor \log(2n)/\log p\rfloor nonzero terms, since ⌊2n/pi⌋=0\lfloor 2n/p^i\rfloor = 0 once pi>2np^i>2n. Therefore

vp(N)≤log⁡(2n)log⁡p,i.e.pvp(N)≤2n.v_p(N) \le \frac{\log(2n)}{\log p}, \qquad \text{i.e.} \qquad p^{v_p(N)} \le 2n.

Step 3: Upper bound for π(2n)−π(n)\pi(2n)-\pi(n) (this yields the lower Chebyshev bound). Every prime pp with n<p≤2nn < p \le 2n divides N=(2nn)=(2n)!n!n!N=\binom{2n}{n}=\dfrac{(2n)!}{n!n!} exactly once: it appears once in (2n)!(2n)! (since 2p>2n2p>2n means p2∤(2n)!p^2 \nmid (2n)! contributes nothing extra beyond the single factor p≤2n<2pp \le 2n < 2p) and does not divide n!n! at all (since p>np>n). So vp(N)=1v_p(N)=1 for every such prime, and these primes are pairwise distinct factors of NN, giving

N≥∏n<p≤2np.N \ge \prod_{n<p\le 2n} p.

Combined with Step 2 applied to all prime factors of NN (each satisfying pvp(N)≤2np^{v_p(N)}\le 2n), and using that NN's prime factors are all ≤2n\le 2n:

N=∏p≤2npvp(N)≤(2n)π(2n).N = \prod_{p \le 2n} p^{v_p(N)} \le (2n)^{\pi(2n)}.

Using the lower bound N≥22n/(2n+1)N \ge 2^{2n}/(2n+1) from Step 1:

22n2n+1≤(2n)π(2n).\frac{2^{2n}}{2n+1} \le (2n)^{\pi(2n)}.

Taking logarithms,

2nlog⁡2−log⁡(2n+1)≤π(2n)log⁡(2n),2n\log 2 - \log(2n+1) \le \pi(2n)\log(2n),

so for n≥2n \ge 2 (making the left side positive and simplifying constants),

π(2n)≥2nlog⁡2−log⁡(2n+1)log⁡(2n)≥c12nlog⁡(2n)\pi(2n) \ge \frac{2n\log 2 - \log(2n+1)}{\log(2n)} \ge c_1 \frac{2n}{\log(2n)}

for a suitable absolute constant c1>0c_1>0 once nn is large enough; a direct check of small cases (finitely many) extends this, after adjusting c1c_1 downward, to all n≥2n \ge 2, and the odd-argument case π(2n+1)≥π(2n)\pi(2n+1)\ge \pi(2n) extends it to all integers x≥4x\ge 4. This gives the lower bound half of the theorem, π(x)≥c1x/log⁡x\pi(x) \ge c_1 x/\log x.

Step 4: Upper bound for π(x)\pi(x). We bound π(2n)\pi(2n) from above using a different route: telescoping the growth of NN. From Step 1, N=(2nn)≤22nN=\binom{2n}{n}\le 2^{2n}. We show a lower bound for NN in terms of the primes between nn and 2n2n combined with an inductive bound. Concretely, define ϑ(x)=∑p≤xlog⁡p\vartheta(x) = \sum_{p \le x} \log p (the Chebyshev theta function). From Step 3's inequality N≥∏n<p≤2npN \ge \prod_{n<p\le 2n}p, taking logs:

ϑ(2n)−ϑ(n)=log⁡ ⁣ ⁣∏n<p≤2np  ≤  log⁡N  ≤  2nlog⁡2.\vartheta(2n)-\vartheta(n) = \log\!\!\prod_{n<p\le2n} p \;\le\; \log N \;\le\; 2n\log 2.

Summing this over n=2k−1,2k−2,…n = 2^{k-1}, 2^{k-2},\dots down a geometric ladder (i.e. applying the bound to n,n/2,n/4,…n, n/2, n/4,\dots and telescoping ϑ(2n)−ϑ(n)≤2nlog⁡2\vartheta(2n)-\vartheta(n) \le 2n\log2, ϑ(n)−ϑ(n/2)≤nlog⁡2\vartheta(n)-\vartheta(n/2)\le n\log 2, etc.) gives, for x=2nx=2n,

ϑ(x)≤2xlog⁡2⋅∑j=0∞2−j⋅(const)≤4xlog⁡2,\vartheta(x) \le 2x\log 2 \cdot \sum_{j=0}^{\infty} 2^{-j} \cdot (\text{const}) \le 4x \log 2,

more precisely one obtains ϑ(x)≤(4log⁡2) x\vartheta(x) \le (4\log 2)\, x for all x≥1x\ge 1 by this telescoping/induction argument (a standard and completely elementary computation from the same binomial coefficient bound applied repeatedly). Consequently, since log⁡p≥log⁡(x)\log p \ge \log(\sqrt x) for every prime pp with x<p≤x\sqrt{x} < p \le x,

ϑ(x)≥∑x<p≤xlog⁡p≥(π(x)−π(x))⋅12log⁡x,\vartheta(x) \ge \sum_{\sqrt x < p \le x} \log p \ge \big(\pi(x)-\pi(\sqrt x)\big)\cdot \tfrac12\log x,

so

π(x)≤π(x)+2ϑ(x)log⁡x≤x+8log⁡2⋅xlog⁡x.\pi(x) \le \pi(\sqrt x) + \frac{2\vartheta(x)}{\log x} \le \sqrt{x} + \frac{8\log 2 \cdot x}{\log x}.

Since x=o(x/log⁡x)\sqrt x = o(x/\log x), absorbing the x\sqrt x term into a slightly larger constant c2c_2 gives, for all x≥2x\ge 2,

π(x)≤c2xlog⁡x.\pi(x) \le c_2 \frac{x}{\log x}.

Combining Steps 3 and 4 gives constants c1,c2>0c_1,c_2>0 with

c1xlog⁡x≤π(x)≤c2xlog⁡xfor all x≥2,c_1\frac{x}{\log x} \le \pi(x) \le c_2 \frac{x}{\log x} \qquad \text{for all } x \ge 2,

which is Chebyshev's estimate. ■\blacksquare

∎
TheoremBertrand's Postulate

For every integer n≥1n \ge 1, there exists a prime pp with

n<p≤2n.n < p \le 2n.
Proof

We give the classical elementary proof (in the spirit of Erdős's 1932 proof), using the same central binomial coefficient N=(2nn)N=\binom{2n}{n} and Legendre's formula as in Chebyshev's Estimate. The technique is proof by contradiction combined with careful prime-factor counting. Small cases (n=1,2,3n = 1,2,3) are checked directly: for n=1n=1, p=2p=2 works (1<2≤21<2\le 2); for n=2n=2, p=3p=3 works; for n=3n=3, p=5p=5 works. So assume n≥4n \ge 4 and, for contradiction, suppose no prime lies in (n,2n](n,2n].

Step 1: Structure of the prime factorization of N=(2nn)N=\binom{2n}{n}. As shown in the proof of Chebyshev's estimate, for every prime pp,

vp(N)=∑i≥1(⌊2npi⌋−2⌊npi⌋),v_p(N) = \sum_{i\ge 1}\left(\left\lfloor\frac{2n}{p^i}\right\rfloor - 2\left\lfloor\frac{n}{p^i}\right\rfloor\right),

each summand is 00 or 11, and the sum has at most ⌊log⁡(2n)/log⁡p⌋\lfloor \log(2n)/\log p\rfloor nonzero terms, so

pvp(N)≤2n.(∗)p^{v_p(N)} \le 2n. \tag{$\ast$}

Moreover, if p>2np > \sqrt{2n}, then only the i=1i=1 term can be nonzero (since p2>2np^2 > 2n forces ⌊2n/p2⌋=0\lfloor 2n/p^2\rfloor = 0), so vp(N)∈{0,1}v_p(N) \in \{0,1\} for all such primes.

Step 2: Primes in (2n/3, n](2n/3,\, n] contribute nothing. Suppose 2n3<p≤n\frac{2n}{3} < p \le n and n≥4n \ge 4 (hence p≥3p \ge 3, so 3p≤3n3p \le 3n, and also 2p>4n/32p>4n/3). We check vp(N)=0v_p(N)=0. We need ⌊2n/p⌋−2⌊n/p⌋=0\lfloor 2n/p\rfloor - 2\lfloor n/p\rfloor = 0 and all higher terms 00. Since 2n3<p≤n\tfrac{2n}{3}<p\le n, we have 1≤n/p<3/21 \le n/p < 3/2, so ⌊n/p⌋=1\lfloor n/p\rfloor = 1, and 2≤2n/p<32 \le 2n/p < 3, so ⌊2n/p⌋=2\lfloor 2n/p\rfloor = 2. Thus the i=1i=1 term is 2−2(1)=02-2(1)=0. For i≥2i\ge2: p2>(2n/3)2≥2np^2 > (2n/3)^2 \ge 2n once n≥4n\ge 4 (check: (2n/3)2≥2n  ⟺  4n2/9≥2n  ⟺  n≥4.5(2n/3)^2 \ge 2n \iff 4n^2/9\ge 2n \iff n \ge 4.5; a short direct check handles n=4n=4: 2n/3=8/3≈2.672n/3=8/3\approx2.67, primes pp with 2.67<p≤42.67<p\le4: none, so this edge case is vacuous), so ⌊2n/p2⌋=0\lfloor 2n/p^2\rfloor=0 too. Hence vp(N)=0v_p(N)=0 for all primes in this range — no such prime factor appears in NN at all.

Step 3: Under our contradiction hypothesis, no prime lies in (n,2n](n,2n], so combined with Step 2, all prime factors pp of NN satisfy either p≤2n3p \le \tfrac{2n}{3} or (p≤np\le n, but by hypothesis no prime is in (n,2n](n,2n], and Step 2 already excludes (2n/3,n](2n/3, n]). So every prime factor of NN satisfies p≤2n3p \le \tfrac{2n}{3}.

Step 4: Bounding the contribution of "large" primes (2n<p≤2n/3\sqrt{2n} < p \le 2n/3). By Step 1's remark, such primes have vp(N)≤1v_p(N) \le 1. There are at most π(2n/3)\pi(2n/3) of them, certainly fewer than 2n3\tfrac{2n}{3} in number (crudely). So their total contribution to NN is at most

∏2n<p≤2n/3p≤(2n)π(2n/3)≤(2n)2n3.\prod_{\sqrt{2n}<p\le 2n/3} p \le (2n)^{\pi(2n/3)} \le (2n)^{\frac{2n}{3}}.

This crude bound will be refined via Chebyshev's estimate below; for now record the factorization split

N=(∏p≤2npvp(N))⋅(∏2n<p≤2n/3pvp(N)).N = \Big(\prod_{p \le \sqrt{2n}} p^{v_p(N)}\Big)\cdot\Big(\prod_{\sqrt{2n}<p\le 2n/3} p^{v_p(N)}\Big).

Step 5: Bounding the "small" primes (p≤2np \le \sqrt{2n}). By (∗)(\ast), each contributes at most 2n2n, and there are at most 2n\sqrt{2n} of them (since there are at most 2n\sqrt{2n} integers up to 2n\sqrt{2n}, let alone primes), so

∏p≤2npvp(N)≤(2n)2n.\prod_{p\le \sqrt{2n}} p^{v_p(N)} \le (2n)^{\sqrt{2n}}.

Step 6: Combine using the Chebyshev-type bound ϑ(x)<(log⁡4) x\vartheta(x) < (\log 4)\,x. We use a clean, fully elementary form of the estimate proved in Step 4 of Chebyshev's Estimate: for all real x≥2x \ge 2,

ϑ(x)=∑p≤xlog⁡p  <  (log⁡4) x.\vartheta(x) = \sum_{p\le x} \log p \;<\; (\log 4)\, x.

(This is exactly the inequality ϑ(x)≤c x\vartheta(x) \le c\, x established there, with c=log⁡4c=\log 4 obtainable directly from N≤22nN\le 2^{2n} by the same telescoping argument; we take this constant as given from that theorem.) Applying it to x=2n/3x = 2n/3:

∏2n<p≤2n/3p≤∏p≤2n/3p=eϑ(2n/3)<42n/3.\prod_{\sqrt{2n}<p\le 2n/3} p \le \prod_{p \le 2n/3} p = e^{\vartheta(2n/3)} < 4^{2n/3}.

Combining Steps 4–6 with the exponent bound vp(N)≤1v_p(N)\le 1 for these primes:

N<(2n)2n⋅42n/3.N < (2n)^{\sqrt{2n}} \cdot 4^{2n/3}.

Step 7: Contradict the lower bound N≥4n2n+1N \ge \dfrac{4^n}{2n+1}. Recall from Step 1 of Chebyshev's Estimate that N=(2nn)≥22n2n+1=4n2n+1N = \binom{2n}{n} \ge \dfrac{2^{2n}}{2n+1} = \dfrac{4^n}{2n+1}. Combining with Step 6:

4n2n+1≤N<(2n)2n⋅42n/3.\frac{4^n}{2n+1} \le N < (2n)^{\sqrt{2n}}\cdot 4^{2n/3}.

Rearranging,

4n/3<(2n)2n (2n+1).(†)4^{n/3} < (2n)^{\sqrt{2n}}\,(2n+1). \tag{$\dagger$}

We now show (†)(\dagger) fails for all sufficiently large nn, and check the remaining finitely many nn directly. Taking logarithms (base ee) of (†)(\dagger):

n3log⁡4<2n log⁡(2n)+log⁡(2n+1).\frac{n}{3}\log 4 < \sqrt{2n}\,\log(2n) + \log(2n+1).

The right side grows like nlog⁡n\sqrt{n}\log n, which is o(n)o(n), while the left side grows linearly in nn. Concretely, one checks by calculus that for n≥468n \ge 468 (a standard threshold in this classical proof; one can verify numerically that at n=468n=468, 2nlog⁡(2n)+log⁡(2n+1)≈936⋅log⁡(936)+log⁡(937)≈30.6×6.84+6.84≈209.4+6.8=216.2\sqrt{2n}\log(2n) + \log(2n+1) \approx \sqrt{936}\cdot\log(936) + \log(937) \approx 30.6 \times 6.84 + 6.84 \approx 209.4 + 6.8 = 216.2, while n3log⁡4=156×1.386=216.2\frac{n}{3}\log 4 = 156\times 1.386 = 216.2 — the crossover — and for nn beyond this the linear term dominates, since d/dnd/dn of the left side is a constant 13log⁡4≈0.462\tfrac13\log4\approx0.462 while the right side's derivative decays like log⁡n/n→0\log n/\sqrt n \to 0), the inequality (†)(\dagger) is false. Hence for all n≥468n \ge 468, no such contradiction-consistent NN can exist, i.e., our assumption (no prime in (n,2n](n,2n]) is false.

Step 8: Finite check for 4≤n<4684 \le n < 468. For the remaining finitely many nn in [4,467][4,467], one exhibits explicitly a prime in (n,2n](n,2n] using the finite list of primes

2,3,5,7,13,23,43,83,163,317,631,…2,3,5,7,13,23,43,83,163,317,631,\dots

each less than twice the previous one (this is a standard finite verification: each listed prime is less than double its predecessor, so between any nn in the relevant range and 2n2n one of these listed primes must fall). For example: for nn up to 467467, since 631>2⋅317631 > 2\cdot 317 fails to be needed as 317⋅2=634>467⋅2317\cdot 2=634>467\cdot2 suffices, the chain 2<3≤2⋅2, 3<5≤2⋅3, 5<7≤2⋅5, 7<13≤2⋅7, 13<23≤2⋅13, 23<43≤2⋅23, 43<83≤2⋅43, 83<163≤2⋅83, 163<317≤2⋅1632<3\le2\cdot2,\ 3<5\le2\cdot3,\ 5<7\le2\cdot5,\ 7<13\le2\cdot7,\ 13<23\le2\cdot13,\ 23<43\le2\cdot23,\ 43<83\le2\cdot43,\ 83<163\le2\cdot83,\ 163<317\le2\cdot163 shows every interval (n,2n](n,2n] for 1≤n≤3161\le n\le 316 contains one of these primes (each prime in the list is less than twice the previous, guaranteeing no gap), and the analytic argument of Step 7 covers all n≥468>316n\ge 468 > 316, so together they cover all n≥1n \ge 1. This completes the proof: for every n≥1n\ge1 there is a prime pp with n<p≤2nn<p\le 2n. ■\blacksquare

∎
CorollaryUnbounded but structured growth

Bertrand's Postulate implies that if pkp_k denotes the kk-th prime in increasing order, then

pk+1<2pkp_{k+1} < 2p_k

for every k≥1k \ge 1. Consequently pk<2kp_k < 2^k for all kk, giving a completely elementary (non-sharp) upper bound on the growth rate of primes, independent of the Prime Number Theorem.

Proof

Apply Bertrand's Postulate with n=pkn = p_k: there is a prime pp with pk<p≤2pkp_k < p \le 2p_k. Since pk+1p_{k+1} is by definition the least prime exceeding pkp_k, we get pk+1≤p≤2pkp_{k+1} \le p \le 2p_k, and since p≠pkp\ne p_k we in fact get pk+1≤p<2pkp_{k+1}\le p < 2p_k unless p=2pkp=2p_k is itself prime — but 2pk2p_k is even and greater than 22, hence composite for pk≥2p_k\ge 2, ruling out equality; hence pk+1<2pkp_{k+1}<2p_k strictly. Iterating from p1=2p_1=2: pk<2k−1p1=2kp_k < 2^{k-1}p_1 = 2^k. ■\blacksquare

∎

Worked examples

Example 1: Locating the Bertrand prime for n=100n=100, and checking the theorem is not vacuous. Bertrand's Postulate guarantees a prime in (100,200](100, 200]. Let's verify concretely rather than trust the abstract theorem. The primes just above 100100 are 101,103,107,109,113,…101, 103, 107, 109, 113,\dots — indeed 101101 is prime (not divisible by 2,3,5,72,3,5,7; 102=100<10110^2=100<101, and 101/7≈14.43101/7\approx14.43, 101/3≈33.67101/3\approx 33.67, 101/5=20.2101/5=20.2, none integral), so 101101 itself already lands in (100,200](100,200]. This illustrates that the theorem's bound is very far from tight in practice — the actual smallest prime above nn is typically much closer to nn than 2n2n; Bertrand's Postulate is a guarantee, not an estimate of the true gap. Using the Corollary: p26=101p_{26} = 101 (the 2626th prime), and indeed p26=101<2⋅p25=2⋅97=194p_{26} = 101 < 2\cdot p_{25} = 2\cdot 97 = 194, consistent with (and much stronger than) the corollary's bound.

Example 2: Using Chebyshev's estimate to sanity-check π(x)\pi(x) at x=1000x=1000. The true value is π(1000)=168\pi(1000) = 168 (a fact one confirms by sieving, e.g. via the Sieve of Eratosthenes up to 10001000; this is a standard tabulated value). Compare against the heuristic x/log⁡xx/\log x:

1000log⁡1000=10006.9078≈144.8.\frac{1000}{\log 1000} = \frac{1000}{6.9078} \approx 144.8.

So π(1000)/(1000/log⁡1000)≈168/144.8≈1.160\pi(1000)/(1000/\log 1000) \approx 168/144.8 \approx 1.160 — the true count exceeds the crude asymptotic prediction by about 16%16\% at this modest scale, which is completely consistent with the Prime Number Theorem (stated below): the ratio π(x)/(x/log⁡x)→1\pi(x)/(x/\log x) \to 1 only in the limit, and convergence is slow; a much better finite approximation (not proved here, but standard) is the logarithmic integral Li(x)=∫2xdt/log⁡t\mathrm{Li}(x) = \int_2^x dt/\log t, which gives Li(1000)≈177.6\mathrm{Li}(1000)\approx 177.6, already far closer to 168168 than the crude x/log⁡xx/\log x estimate. This numerically demonstrates why Chebyshev's theorem (a two-sided constant-factor bound, not an asymptotic equality) is a genuinely weaker statement than the Prime Number Theorem, and why the latter needed fundamentally new ideas to prove.

TheoremPrime Number Theorem — statement only

As x→∞x \to \infty,

π(x)∼xlog⁡x,i.e.lim⁡x→∞π(x)x/log⁡x=1.\pi(x) \sim \frac{x}{\log x}, \qquad \text{i.e.} \qquad \lim_{x\to\infty} \frac{\pi(x)}{x/\log x} = 1.

Equivalently, π(x)=xlog⁡x(1+o(1))\pi(x) = \dfrac{x}{\log x}\big(1+o(1)\big) as x→∞x\to\infty.

This statement is given here without proof. The theorem was conjectured by Gauss and Legendre from numerical evidence around 1792–1798, and proved independently by Jacques Hadamard and Charles-Jean de la Vallée Poussin in 1896. All known proofs (the original analytic proof, and the later "elementary" 1949 proof of Erdős and Selberg which nonetheless is far more intricate than anything in this article) require substantially more machinery than the combinatorial techniques used for Chebyshev's estimate and Bertrand's Postulate above — either properties of the Riemann zeta function and complex analysis, or delicate elementary but non-trivial asymptotic sieve-type arguments. It is stated here purely as the capstone fact this article's elementary results point toward; its proof is beyond the intended scope.

CounterexampleWhy Bertrand's Postulate needs "for every n≥1n\ge1", not merely "for infinitely many nn"

Suppose we weakened Bertrand's Postulate to the claim "for infinitely many nn, there is a prime in (n,2n](n,2n]." This weaker statement, on its own, would say almost nothing useful: it would be satisfied even by a wildly irregular set of "primes" with enormous gaps, as long as infinitely many of those gaps happen to sit inside a doubling interval. To see concretely why the universally quantified (all nn) version is essential and not automatic from weaker density facts, consider the following genuine phenomenon inside the actual primes: arbitrarily long runs of consecutive composite integers exist, so that if Bertrand's Postulate held only "for infinitely many nn" rather than all nn, entire ranges could be prime-free without contradiction. Concretely, fix any integer k≥1k \ge 1 and consider

(k+1)!+2, (k+1)!+3, …, (k+1)!+(k+1).(k+1)! + 2,\ (k+1)!+3,\ \dots,\ (k+1)!+(k+1).

This is a run of kk consecutive integers. For each jj with 2≤j≤k+12 \le j \le k+1, we have j∣(k+1)!j \mid (k+1)! (since j≤k+1j \le k+1) and j∣jj \mid j, so j∣((k+1)!+j)j \mid \big((k+1)!+j\big); and since (k+1)!+j>j≥2(k+1)!+j > j \ge 2, each term (k+1)!+j(k+1)!+j is composite. Taking k=10k=10: the ten consecutive integers

11!+2, 11!+3, …, 11!+1111!+2,\ 11!+3,\ \dots,\ 11!+11

(that is, 39916802,39916803,…,3991681139916802, 39916803,\dots,39916811) are all composite — a run of 1010 consecutive composites. This shows prime gaps can be made arbitrarily large: for any kk, there exist kk consecutive composite integers. If Bertrand's Postulate were only an "infinitely often" statement, this phenomenon would be entirely compatible with it, and would give no control over what happens inside any particular interval (n,2n](n,2n] — exactly the control the full, all-nn statement provides. The full theorem's strength is precisely that no matter how deep into such a composite desert we are, doubling the starting point is always guaranteed to recapture a prime — which the "run of composites" fact shows is a real and nontrivial obstruction to overcome, not a vacuous concern.

Scope, edge cases & common traps

SituationWhat holdsWhat fails / must be checked
x<2x < 2π(x)=0\pi(x) = 0Chebyshev's lower bound is only asserted for x≥2x \ge 2; do not misapply constants for small xx
n=1,2,3n=1,2,3 in BertrandVerified by direct inspection (p=2,3,5p=2,3,5)The general combinatorial argument in the proof assumes n≥4n\ge4; small cases are a separate finite check
Interpreting π(x)∼x/log⁡x\pi(x)\sim x/\log xA statement about the ratio tending to 11It does not mean π(x)−x/log⁡x→0\pi(x)-x/\log x \to 0; the difference actually grows without bound
Using Chebyshev's bound as if it were PNTGives constants c1,c2c_1,c_2 with c1<1<c2c_1<1<c_2Does not pin down the constant to be 11; that sharper fact is exactly the content of PNT, unproved here
Bertrand's interval (n,2n](n,2n]Always contains a primeThe bound 2n2n is not the tightest possible; true prime gaps near nn are far smaller — do not read Bertrand's Postulate as an estimate of gap size

The mathematician behind it

Origins · 1 minPafnuty Lvovich Chebyshev and how this was discovered
PL
Pafnuty Lvovich Chebyshev
1821–1894 · Imperial Russia, mid-19th century mathematics

Chebyshev worked at a time when the distribution of primes was known only through Gauss's and Legendre's numerical conjectures — no one had proved even that π(x)\pi(x) grows at the right order. Chebyshev's 1848–1852 papers gave the first rigorous, purely elementary bounds sandwiching π(x)\pi(x) between constant multiples of x/log⁡xx/\log x, using precisely the binomial-coefficient technique reproduced in this article. He also proved that if π(x)/(x/log⁡x)\pi(x)/(x/\log x) converges at all, the limit must be exactly 11 — a partial result stopping just short of the full Prime Number Theorem, whose proof required tools (complex analysis applied to the zeta function) that were only fully developed by Riemann and later by Hadamard and de la Vallée Poussin. Chebyshev's methods, being entirely elementary, remain the standard first rigorous approach taught to students before the analytic machinery of the full theorem is introduced.

History
- 1845: Bertrand conjectures (and verifies numerically up to large bounds) that a prime always lies between nn and 2n2n.
- 1850: Chebyshev proves Bertrand's Postulate rigorously, along with his two-sided x/log⁡xx/\log x estimates for π(x)\pi(x).
- 1859: Riemann's memoir connects π(x)\pi(x) to the complex analytic properties of the zeta function, laying the groundwork for a full proof of the Prime Number Theorem.
- 1896: Hadamard and de la Vallée Poussin independently prove the Prime Number Theorem using complex analysis.
- 1932: Erdős publishes a short, elegant elementary re-proof of Bertrand's Postulate, close in spirit to the one given here.
Is π(x)\pi(x) the same as the number of prime factors of xx?

No — this is one of the most common points of confusion for students meeting this notation for the first time. π(x)\pi(x) counts how many distinct primes are less than or equal to the real number xx; it has nothing directly to do with the factorization of xx itself. For example π(12)=5\pi(12) = 5, since the primes ≤12\le 12 are 2,3,5,7,112,3,5,7,11, even though 12=22⋅312 = 2^2\cdot3 has only two distinct prime factors. The notation clash with "π\pi meaning the number of prime factors" appears in some other contexts (e.g., ω(n)\omega(n) or Ω(n)\Omega(n) for factor-counting functions), so always check which convention a given text uses; in this article and in standard usage, π(x)\pi(x) is exclusively the prime-counting function evaluated at xx.

Why can't we find a simple closed formula for π(x)\pi(x)?

No polynomial or simple elementary closed-form expression for π(x)\pi(x) is known, and this is not merely a failure of cleverness — the primes' distribution is governed by deep analytic structure (the zeros of the Riemann zeta function) that has no simpler combinatorial description. What is available is the asymptotic behavior: Chebyshev's estimate pins π(x)\pi(x) to within constant factors of x/log⁡xx/\log x using only elementary combinatorics, and the Prime Number Theorem sharpens this to an exact asymptotic ratio of 11, though its proof requires complex analysis. Explicit formulas do exist (e.g., via the Riemann explicit formula relating π(x)\pi(x) to zeta zeros), but these involve infinite sums over non-elementary data, not simple closed forms.

Why does the proof of Bertrand's Postulate need a separate finite check for small nn?

The main combinatorial argument (bounding N=(2nn)N=\binom{2n}{n} via prime factorizations and deriving a contradiction from the assumption of no prime in (n,2n](n,2n]) only produces a genuine numerical contradiction once nn is large enough — in the classical proof, roughly n≥468n \ge 468 — because the inequality comparing exponential growth (4n/34^{n/3}) against the slower 2nlog⁡(2n)\sqrt{2n}\log(2n)-type growth needs nn past a specific crossover point to be strictly violated. Below that threshold, the asymptotic argument is simply too weak to force a contradiction, so those finitely many cases must be checked by an independent, explicit method — here, by exhibiting a chain of primes each less than double its predecessor. This combination of "asymptotic argument for large cases, explicit check for small cases" is a very common proof pattern in elementary number theory.

Does the Prime Number Theorem tell us exactly how many primes are below, say, 101210^{12}?

Not exactly — it only describes the asymptotic ratio, not a usable finite formula with an error bound built in. The Prime Number Theorem states that π(x)/(x/log⁡x)→1\pi(x)/(x/\log x) \to 1, but for any specific finite xx this only tells you the ratio is close to 11 for large enough xx, without by itself quantifying "how close" at x=1012x=10^{12} precisely. In practice, mathematicians use sharper versions with explicit error terms (proved using the same complex-analytic machinery, but going further, e.g. involving zero-free regions of the zeta function), or the logarithmic integral Li(x)\mathrm{Li}(x), which is empirically a much better approximation than x/log⁡xx/\log x at finite scales, though still not exact. Exact values of π(x)\pi(x) at specific large xx are computed by specialized combinatorial algorithms (e.g., the Meissel–Lehmer method), not from the Prime Number Theorem's asymptotic statement directly.

Is Bertrand's Postulate still called a "postulate" even though it's a proved theorem?

Yes, purely for historical reasons. Joseph Bertrand stated it in 1845 based on extensive numerical verification (he checked it for all nn up to about three million) but did not supply a complete proof; the name "postulate" stuck from that era, in the same way "Fermat's Last Theorem" retained its name for centuries before being proved. Chebyshev supplied the first rigorous proof just a few years later, in 1850, so mathematically it has been a fully proved theorem since then — the traditional name is simply a historical label, not a statement about its current logical status.

How does Bertrand's Postulate relate to the claim that prime gaps can be arbitrarily large?

They are not in tension — they answer different questions. Bertrand's Postulate says every interval (n,2n](n,2n] contains at least one prime, which bounds how far you ever have to look past nn to hit the next prime relative to nn's own size (the gap from nn to the next prime, in the worst case, is at most roughly nn). The composite-run construction shows that gaps between consecutive primes — i.e., pk+1−pkp_{k+1}-p_k — can be made arbitrarily large in absolute terms as kk grows, since k+1k+1 consecutive composite integers can always be manufactured using factorials. Both are true simultaneously: gaps grow without bound in absolute terms, yet always stay controlled relative to the size of the primes themselves — consistent with the corollary that pk+1<2pkp_{k+1} < 2p_k.

Before this