Abstract

We show how to carry out a sieve of Eratosthenes up to N in space O(N^{1/3} (log N)^{2/3}) and essentially linear time. These bounds constitute an improvement over the usual versions of the sieve, which take space about O(sqrt{N}) and essentially linear time. We can also apply our sieve to any subinterval of [1,N] of length O(N^{1/3} (log N)^{2/3}) in time essentially linear on the length of the interval. Before, such a thing was possible only for subintervals of [1,N] of length >> sqrt{N}. Just as in (Galway, 2000), our approach is related to Diophantine approximation, and also has close ties to Voronoi's work on the Dirichlet divisor problem. The advantage of the method here resides in the fact that, because the method we will give is based on the sieve of Eratosthenes, we will also be able to use it to factor integers, and not just to produce lists of consecutive primes.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.