skip to main content
article
Free Access

Some new upper bounds on the generation of prime numbers

Published:01 September 1977Publication History
Skip Abstract Section

Abstract

Given an integer N, what is the computational complexity of finding all the primes less than N? A modified sieve of Eratosthenes using doubly linked lists yields an algorithm of OA(N) arithmetic complexity. This upper bound is shown to be equivalent to the theoretical lower bound for sieve methods without preprocessing. Use of preprocessing techniques involving space-time and additive-multiplicative tradeoffs reduces this upper bound to OA(N/log logN) and the bit complexity to OB(N logN log log logN). A storage requirement is described using OB(N logN/log logN) bits as well.

References

  1. 1 Aho, A., Hopcraft, J., and Ullman, J. The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, Mass., 1974. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2 Chartres, B.A. Algorithms 310-311: Prime number generators 1 and 2. Comm. ACM 10, 9 (Sept. 1967), 569-570. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3 Knuth, D.E. The Art of Computer Programming, Vol. 1: FundamentalAlgorithms. Addison-Wesley, Reading, Mass., 1973. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. 4 Niven, I., and Zuckerman, H. An Introduction to the Theory of Numbers. Wiley, New York, 1960, chap. 2.Google ScholarGoogle Scholar
  5. 5 Singleton, R.C. Algorithms 356-357: Prime number generation using the treesort principle. Comm. ACM 12, 10 (Oct. 1969), 563- 564. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. 6 Wood, T.C. Algorithm 35: Sieve. Comm. ACM 4, 3 (March 1961), 151. Google ScholarGoogle ScholarDigital LibraryDigital Library

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in

Full Access

  • Published in

    cover image Communications of the ACM
    Communications of the ACM  Volume 20, Issue 9
    Sept. 1977
    60 pages
    ISSN:0001-0782
    EISSN:1557-7317
    DOI:10.1145/359810
    Issue’s Table of Contents

    Copyright © 1977 ACM

    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 1 September 1977

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • article

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader