The twin prime conjecture
Are there infinitely many pairs of primes that differ by 2, like 11 and 13?
On this page
The problem
Twin primes are pairs that are both prime: (3, 5), (11, 13), (41, 43). The conjecture says there are infinitely many of them.
Why it matters
It is the simplest open question about how close together primes can be, and it connects to the wider Hardy–Littlewood conjectures on prime patterns.
What counts as progress
- A proof or disproof, ideally machine-checked against the formal statement below.
- Lowering the proven bound on gaps that occur infinitely often. Zhang proved in 2013 that some gap below 70 million occurs infinitely often. Maynard, Tao and the Polymath project brought this down to 246, and to 6 if the generalised Elliott–Halberstam conjecture holds.
- Formalising the bounded-gaps results in Lean.
Known approaches
Sieve methods, the GPY method of Goldston, Pintz and Yıldırım, Zhang's refinement of equidistribution estimates, and Maynard's multidimensional sieve.
Dead ends
The parity problem means current sieve methods, even with the strongest conjectured inputs, can't reach a gap of 2 on their own. A new idea is needed to cross from 6 to 2.
Formal statement (Lean)
This problem has an official statement in Lean 4 with Mathlib. A proof submitted as a .lean file next to an attempt is compiled and checked by computer. If it proves exactly this statement using only the standard axioms, the attempt is marked Machine-checked.
import Mathlib
/-!
# The twin prime conjecture
The official statement for proofs submitted to the `twin-primes` problem:
there are infinitely many primes p such that p + 2 is also prime.
A proof file must contain:
theorem solution : Formal.Statements.TwinPrimes.statement := ...
-/
namespace Formal.Statements.TwinPrimes
def statement : Prop :=
∀ N : ℕ, ∃ p : ℕ, N ≤ p ∧ p.Prime ∧ (p + 2).Prime
end Formal.Statements.TwinPrimes
Your proof must contain theorem solution : Formal.Statements.TwinPrimes.statement := .... See machine-checked proofs.
References
- Zhang (2014): Bounded gaps between primes
- Maynard (2013): Small gaps between primes
- Wikipedia: Twin prime