Submitted:
03 July 2025
Posted:
04 July 2025
You are already at the latest version
Abstract
We collect five self-contained closed-form formulas that approximate with high accuracy: (1) the n-th prime pn; (2) the prime-counting function π(x); (3) the logarithm of the primorial pn# in terms of n; and (4)–(5) fast inverses linking pn and π(x). All coefficients depend only on elementary constants (π) and rational numbers. Numerical tests show sub-percent errors from n ≥ 100 or x ≥ 104 upward. No facts about the zeros of the Riemann zeta function are assumed.
Keywords:
prime numbers
; precise formula
1. Notation
- : the n-th prime.
- : the number of primes .
- : the primorial of the first n primes.
- : the natural logarithm.
- : Lambert’s W function, defined by .
- : the first Chebyshev function.
2. Five Key Formulas
2.1. (F1)
2.2. (F2)
2.3. (F3) from the prime index
For indices , the logarithm of the primorial of the n-th prime is well approximated by:
2.4. (F4) Fast inverse
2.5. (F5) Fast inverse
3. Links Between and Prime-Sum Functions
A Stirling-based expansion relates the factorial to the Chebyshev function:
Alternatively, in an exponential style:
4. Numerical Accuracy (brief)
Empirical tests show:
(Detailed tables and code are provided separately.)
5. Concluding Note on the Empirical Derivation
It is important to emphasize that while the formulas presented demonstrate remarkable accuracy in numerical tests, their deduction, including that of the constants, has been empirical in nature. This work is therefore presented as a motivation for the mathematical community. The theoretical foundation explaining this high effectiveness remains an open problem, as does establishing an analytical derivation for the coefficients, potentially connecting them to known mathematical constants.
References
- G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 6th ed., OUP, 2008.
- P. Dusart, “Estimates of some functions over primes”, Math. Comp. 83 (2014), 2113–2144.
- J. Cipolla, "Sur la fonction qui donne le nombre des nombres premiers", Bull. Soc. Math. France (1902).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.