An Efficient Algorithm for Estimating Prime Counts
摘要
We propose an efficient algorithm for approximating the prime counting function using a structured non-uniform partition derived from generalized triangular numbers. The method yields an incremental estimator whose updates require only local computations, resulting in amortized update complexity and total complexity . A correction term obtained through extensive numerical experimentation significantly improves the approximation accuracy. Computational tests for values up to show strong agreement with known values of , with accuracy comparable to classical analytic approximations, while maintaining a substantially simpler incremental evaluation scheme. The proposed framework may be useful in large-scale computational number theory applications requiring fast repeated estimates of .
引用
@article{arxiv.2606.31761,
title = {An Efficient Algorithm for Estimating Prime Counts},
author = {Artur Samojluk and Artur Siemaszko},
journal= {arXiv preprint arXiv:2606.31761},
year = {2026}
}