Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Free access

Some new upper bounds on the generation of prime numbers

Published: 01 September 1977 Publication History

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

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

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
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: 01 September 1977
Published in CACM Volume 20, Issue 9

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. balancing
  2. computational complexity
  3. linked list
  4. number theory
  5. preprocessing
  6. prime number generation
  7. sieve

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)92
  • Downloads (Last 6 weeks)18
Reflects downloads up to 09 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2024)Prime Time Tactics—Sieve Tweaks and BoostersAlgorithms10.3390/a1707029117:7(291)Online publication date: 3-Jul-2024
  • (2024)Prime Number Sieving—A Systematic Review with Performance AnalysisAlgorithms10.3390/a1704015717:4(157)Online publication date: 14-Apr-2024
  • (2022)A Proof of the Twin Prime Conjecture in the Ƥ x Ƥ SpaceWSEAS TRANSACTIONS ON MATHEMATICS10.37394/23206.2022.21.6621(585-593)Online publication date: 25-Jul-2022
  • (2022)A Proof of Goldbach Conjecture by Mirror Prime DecompositionWSEAS TRANSACTIONS ON MATHEMATICS10.37394/23206.2022.21.6321(563-571)Online publication date: 18-Jul-2022
  • (2022)Efficient Sequential and Parallel Prime Sieve AlgorithmsSymmetry10.3390/sym1412252714:12(2527)Online publication date: 30-Nov-2022
  • (2019)A Distributed Wheel Sieve Algorithm2019 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW)10.1109/IPDPSW.2019.00107(619-626)Online publication date: May-2019
  • (2016)The I/O Complexity of Computing Prime TablesLATIN 2016: Theoretical Informatics10.1007/978-3-662-49529-2_15(192-206)Online publication date: 22-Mar-2016
  • (2007)Linear time algorithms for Abelian group isomorphism and related problemsJournal of Computer and System Sciences10.1016/j.jcss.2007.03.01373:6(986-996)Online publication date: 1-Sep-2007
  • (2005)A Distributed Prime Sieving Algorithm based on Scheduling by Multiple Edge ReversalProceedings of the The 4th International Symposium on Parallel and Distributed Computing10.1109/ISPDC.2005.5(139-146)Online publication date: 4-Jul-2005
  • (2003)Efficient Algorithms for Abelian Group Isomorphism and Related ProblemsFST TCS 2003: Foundations of Software Technology and Theoretical Computer Science10.1007/978-3-540-24597-1_24(277-288)Online publication date: 2003
  • Show More Cited By

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Full Access

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media