Abstract
A prime number sieve is an algorithm that finds the primes up to a bound n. We present four new prime number sieves. Each of these sieves gives new space complexity bounds for certain ranges of running times. In particular, we give a linear time sieve that uses only O(√n/(log log n)2) bits of space, an O l(n/ log log n) time sieve that uses O(n/((log n)l log log n)) bits of space, where l>1 is constant, and two super-linear time sieves that use very little space.
Supported by NSF Grant CCR-9626877
Preview
Unable to display preview. Download preview PDF.
References
Adleman, L. M., Pomerance, C., Rumely, R.: On distinguishing prime numbers from composite numbers. Annals of Mathematics 117 (1983) 173–206
Bach, E.: Analytic Methods in the Analysis and Design of Number-Theoretic Algorithms. MIT Press, Cambridge (1985)
Bach, E., Shallit, J.: Algorithmic Number Theory, Vol. 1. MIT Press, Cambridge (1996)
Bays, C., Hudson, R.: The segmented sieve of Eratosthenes and primes in arithmetic progressions to 1012. BIT 17 (1977) 121–127
Bernstein, D. J.: Personal communication. (1998)
Dunten, B., Jones, J., Sorenson, J. P.: A space-efficient fast prime number sieve. Information Processing Letters 59 (1996) 79–84
Greene, D. H., Knuth, D. E.: Mathematics for the Analysis of Algorithms. 3rd edn. BirkhÄuser, Boston (1990)
Hardy, G. H., Wright, E. M.: An Introduction to the Theory of Numbers. 5th edn. Oxford University Press (1979)
Miller, G.: Riemann's hypothesis and tests for primality. Journal of Computer and System Sciences 13 (1976) 300–317
Pomerance, C. (ed.): Cryptology and Computational Number Theory. Proceedings of Symposia in Applied Mathematics, Vol. 42. American Mathematical Society, Providence (1990)
Pritchard, P.: A sublinear additive sieve for finding prime numbers. Communications of the ACM 24(1) (1981) 18–23, 772
Pritchard, P.: Fast compact prime number sieves (among others). Journal of Algorithms 4 (1983) 332–344
Pritchard, P.: Linear prime-number sieves: A family tree. Science of Computer Programming 9 (1987) 17–35
Sorenson, J. P., Parberry, I.: Two fast parallel prime number sieves. Information and Computation 144(1) (1994) 115–130
Stroustrup, B.: The C++ Programming Language. 2nd edn. Addison-Wesley (1991)
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1998 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Sorenson, J.P. (1998). Trading time for space in prime number sieves. In: Buhler, J.P. (eds) Algorithmic Number Theory. ANTS 1998. Lecture Notes in Computer Science, vol 1423. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0054861
Download citation
DOI: https://doi.org/10.1007/BFb0054861
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-64657-0
Online ISBN: 978-3-540-69113-6
eBook Packages: Springer Book Archive