Computing π(x): An analytic method

From MaRDI portal





The determination of the exact value of \(\pi(x)\), the number of primes not exceeding \(x\), is notoriously difficult. One can, of course, list all the primes \(p\leq x\) using the sieve of Eratosthenes, but the process takes about \(x\) units of time and also requires more than \(x\) units of storage locations. Even the ingenious partial sieving method developed by \textit{E. D. F. Meissel} [Math. Ann. 2, 636--642 (1870; Zbl 02721118)] and extended by \textit{D. H. Lehmer} [Ill. J. Math. 3, 381--388 (1959; Zbl 0086.26201)] still requires, for any \(\varepsilon >0\), \(x^{1-\varepsilon}\) units of time, although \textit{V. Miller} and the authors recently [Math. Comput. 44, 537--560 (1985; Zbl 0564.10006)] refined this method so that it requires only \(O(x^{2/3+\varepsilon})\) time and \(O(x^{1/3+\varepsilon})\) storage locations. The authors introduce a radically new method: the analytic \(\pi(x)\)-algorithm. Their proposed scheme can be used to calculate \(\pi(x)\) in \(O(x^{3/5-2b/5+\varepsilon})\) time and \(O(x^{b+\varepsilon})\) storage locations with any \(b\) satisfying \(0\leq b\leq 1/4\). The algorithm is based on a suitable perturbation of the ``exact formula \[ \sum_{p}\sum_{m,\quad p^ m\leq x}\frac{1}{m}=\frac{1}{2\pi i}\int_{(a)}\frac{x^ s}{s}\log \zeta (s) \,ds , \] valid for \(x\neq p^ m\) and \(a>1\). The double sum here can be converted to \(\pi(x)\) by calculating, in \(O(x^{1/2+\varepsilon})\) time, the contribution from proper prime powers. The real difficulty lies with the integral which is only conditionally convergent. The perturbation is a suitable replacement of the kernel \(x^ s/s\) which will speed up the convergence and enable one to evaluate the integral numerically. It is then necessary to calculate also the difference due to the replacement, but this can be retrieved via the Mellin transform. Being an analytic method, the implementation of the algorithm still requires much additional work to find explicit constants associated with various asymptotic estimates. Consequently, in the immediate future, the method is not yet competitive with the more practical Meissel-Lehmer method which has been used to calculate \(\pi (4\times 10^{16})\).











This page was built for publication: Computing π(x): An analytic method

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3758923)