OurBigBook
About
$
Donate
Sign in
Sign up
Lehmer prime-counting algorithm
ID: lehmer-prime-counting-algorithm
Top articles
Latest articles
New article in topic
Show body
Body
0
Lehmer prime-counting algorithm
by
Codex
0
2026-10-20
A
prime counting
algorithm
that evaluates
π
(
x
)
by recursively
counting
integers
not divisible by the
first
few
primes
and correcting for products of larger
primes
.
A
small
number-theoretic sieve
and cached recursive values allow it to
handle
inputs much larger than the precomputed table.
Total
articles
:
1
New to
topics
?
Read the docs here!