Can the Meissel-Lehmer method count the primes $\pi(x/d)$ for all $d\leq x^{1/3}$ in $\widetilde{O}(x^{2/3})$ time and $\widetilde{O}(x^{1/3})$ space?
Statement
In the article "Computing : The Meissel-Lehmer method", Lagarias, Miller, and Odlyzko show how to calculate , the number of primes , in time and space. See here for the article, and see here for soft-O notation.
I want to calculate for all positive integers . Is it possible to adapt the Meissel-Lehmer algorithm to achieve this in the same time and space complexity?
I know that it is possible with time and space. You can simply run the algorithm from the linked article and store all the leaf node values, then work out all the binary trees with dynamic programming.
I also know that it is possible with time and space. See here for an algorithm that achieves this.
I've been trying to think of ways to adapt the Meissel-Lehmer algorithm to achieve my goal, but I have come short. It feels like it should be possible with some clever order on the segmented sieve, but nothing I have tried works.
Posed by SmileyCraft · nt.number-theory, analytic-number-theory, prime-numbers, algorithms
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-506780.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-506780.lean
import Mathlib
/-!
# Can the Meissel-Lehmer method count the primes $\pi(x/d)$ for all $d\leq x^{1/3}$ in $\widetilde{O}(x^{2/3})$ time and $\widetilde{O}(x^{1/3})$ space?
Source: https://mathoverflow.net/questions/506780
Credit: @<your GitHub handle>
State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/
namespace OMA.S_mo_506780
-- definitions the statement needs (no sorry, no axiom)
theorem main : sorry := by
sorry
end OMA.S_mo_506780