Atelier des rouesLab FR
Register/AT.P2
Experiment or measured limit · AT.P2

Detecting small primes inside quotient counts

1/4 Educational or exploratory value AI-assisted literature assessment · one reading

I treat the finite-difference test S(p)−S(p−1)=1 as a direct way to read prime indicators from the sieve’s survivor counts. Meissel–Lehmer work already organizes prime counting through such partial-sieve quantities; this entry adds operation traces and comparisons at several scales, not a distinct counting theorem. The traces may help audit this implementation, but their reproducibility and value beyond the tested bounds remain unshown.

M. Deléglise, J. Rivat, Computing π(x): The Meissel, Lehmer, Lagarias, Miller, Odlyzko Method · J. C. Lagarias, V. S. Miller, A. M. Odlyzko, Computing π(x): The Meissel-Lehmer Method

How I rate results

Assumptions

I compare historical scalar sieve A05 and AT.P1 at identical thresholds, with three rank selections and two ordered 64-query batches.

Result

A05 infers primes p≤√X when S(p)−S(p−1)=1. At one million I find 78,498 primes with 1,999 quotients and 24,641 update divisions. Traces agree with the historical implementation at four scales. Primecount independently checks 153 counts and three selections. I distinguish inferred information from AT.P1’s explicitly constructed factor list.

Prior work

Lagarias, Miller & Odlyzko, Computing π(x): the Meissel–Lehmer method · Kim Walisch, primecount · Griffin Macris, Lucy’s Algorithm + Fenwick Trees

Next question

I share states in AT.P3 and compare an anchored count in AT.P4.

Read the argument and prior work · View supporting evidence

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.