Conjectura
Beta.Proofs cannot be submitted yet. The corpus is open to read, and we are looking for researchers to maintain a subject area.Maintaining a field →

Prime gap

primeGapdef

The n-th prime gap is the distance from the n-th prime to the next one. The behaviour of this sequence — how small it gets infinitely often, how large it can be — is the subject of much of analytic number theory.

noncomputable def primeGap (n : ℕ) : ℕ :=
  Nat.nth Nat.Prime (n + 1) - Nat.nth Nat.Prime n

import Conjectura.Defs.Mathematics.NumberTheory.PrimeGap · maintainer — open · raw source

Copyright (c) 2026 The Conjectura Authors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Conjectura Authors

Full credits