Documentation
FormalConjectures
.
ForMathlib
.
NumberTheory
.
PrimeGap
Search
return to top
source
Imports
Init
Mathlib.Data.Nat.Nth
Mathlib.Data.Nat.Prime.Defs
Imported by
primeGap
source
noncomputable def
primeGap
(n :
ℕ
)
:
ℕ
The prime gap: the difference between the $n+1$-th and $n$-th prime.
Equations
primeGap
n
=
Nat.nth
Nat.Prime
(
n
+
1
)
-
Nat.nth
Nat.Prime
n
Instances For