Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Dusart's bound for ∑p≤x1/p\sum_{p\le x}1/p∑p≤x​1/p on [10372,3594641][10372,3594641][10372,3594641]

Proved
Dusart.finite_range_10372

by @bwdaugherty · Oct 16, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theorynumber-theoryprime-numbers

For every real xxx with 10372≤x≤359464110372\le x\le 359464110372≤x≤3594641,

∑p≤x1p−log⁡log⁡x−B≤110log⁡2x+415log⁡3x,B=γ+∑p(log⁡(1−1p)+1p),\sum_{p\le x}\frac1p-\log\log x-B\le\frac{1}{10\log^2x}+\frac{4}{15\log^3x},\qquad B=\gamma+\sum_p\Big(\log\Big(1-\frac1p\Big)+\frac1p\Big),p≤x∑​p1​−loglogx−B≤10log2x1​+15log3x4​,B=γ+p∑​(log(1−p1​)+p1​),

where ppp runs over primes and γ\gammaγ is Euler's constant. This is the finite range of Dusart's Theorem 6.10, which Dusart closes by a computer check; here it is a kernel-checked certificate.

Formalization Note BBB is written with Mathlib's tsum over Nat.Primes; the sum over p≤xp\le xp≤x is over primes in Finset.range (⌊x⌋₊ + 1).

Preamble
import Mathlib.NumberTheory.Harmonic.EulerMascheroni
import Mathlib.NumberTheory.SumPrimeReciprocals
Formal statement
theorem Dusart.finite_range_10372 (x : ℝ) (h1 : 10372 ≤ x) (h2 : x ≤ 3594641) :
    (∑ p ∈ Finset.filter Nat.Prime (Finset.range (⌊x⌋₊ + 1)), (1 : ℝ) / p) - Real.log (Real.log x) -
        (Real.eulerMascheroniConstant + ∑' p : Nat.Primes, (Real.log (1 - 1 / (p : ℝ)) + 1 / (p : ℝ))) ≤
      1 / (10 * Real.log x ^ 2) + 4 / (15 * Real.log x ^ 3) := by sorry
Source
P. Dusart, Estimates of some functions over primes without R.H., arXiv:1002.0442 (2010), Theorem 6.10 (upper bound for x ≥ 10372) and Theorem 5.2 (k = 2, η = 0.2, x ≥ 3 594 641); the proof of Theorem 6.10 closes the range below 3 594 641 by a computer check.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me