Number theory · Theorem

Why are there infinitely many primes?

For every natural number n, does there exist a prime p with n < p?

ProvedOpenMath assessment · Oct 10, 2026

Earlier version 7 of this page. View current →

Overview

Known

Full natural-number statement proved; the strict, non-strict, unbounded and infinite formulations are equivalent.

Precise statement

Natural numbers and ordinary primality. This strict formulation follows by applying the pinned at-or-above theorem at n + 1.

Definitions

Unbounded primes
For each natural-number bound there is a larger prime. This is equivalent to saying that the set of primes is infinite.

Question paraphrased by OpenMath. Original wording is available in the sources.

Landscape

Figures and explorable examples. Selecting a statement opens its exact wording.

Euclid’s argument, computed

Each n! + 1 has a smallest prime factor larger than n, exactly as the proof predicts; sometimes n! + 1 is itself prime.

nn! + 1smallest prime factor pas p × cofactor
122prime
233prime
377prime
42555 × 5
51211111 × 11
672177 × 103
75,0417171 × 71
840,3216161 × 661
9362,8811919 × 19,099
103,628,8011111 × 329,891
1139,916,80139,916,801prime
12479,001,6011313 × 36,846,277

Twelve instances of the argument, computed exactly. The theorem for every n is the linked statement and its formal proof.

Results

The question 1

Equivalent formulations 3

  • Proved
    A prime at or above every bound

    Same natural-number domain as the strict formulation.

    mathlib contributors
  • Proved
    The set of primes is unbounded

    Natural-number primes with their usual order.

    OpenMath staff
  • Proved
    There are infinitely many primes

    Natural numbers; no claim of this equivalence for arbitrary ordered sets.

    OpenMath staff

Background 1

  • Proved
    Characterizing a natural-number prime

    Natural-number divisibility and ordinary primality.

    mathlib contributors

Approaches

How the problem is attacked, and what each line of attack cannot yet reach.

Research notes

Evidence

Evidence by kind
Literature

3 reference descriptions

Status OpenMath assessment · Oct 10, 2026.

Formal

Statement match disputed

3 formalizations below ↓

Computation

OpenMath Lean checks

1 OpenMath Lean task ↓

Review

Not yet reviewed

OpenMath assessment: Established result supported by the cited note and pinned mathlib statement. The local exercise tests exact Lean inputs, not novelty.

Staff checked the equivalence under natural-number assumptions and retained exact source correspondence. Independent mathematical review remains pending.

Elementary prime results · OpenMath staff · assessed Oct 10, 2026 · review due Mar 30, 2027

Formalizations

External proof reports do not establish an OpenMath run, independent statement correspondence, or independent mathematical review.

Work

Loading task runs…

Sources

Choose a starting point below. Each result links to its exact statement, cited passages and checks.

Start here

Bibliography 3

Selected literature; source observations and coverage limits are retained in the publication details.

Contributors

The OpenMath note explains the classical infinitude argument. Mathlib contributors provide the linked formal theorems and prime definitions.

Authors & roles

These are source credits; they do not imply OpenMath accounts, endorsements or independent mathematical review.

Record details
Record version
7
Classification
MSC2020 11A41
Prerequisite level
undergraduate
Source observations & version history →