A linear sieve algorithm for finding prime numbers
David J. Gries, Jayadev Misra · Communications of the ACM · 1978
A new algorithm is presented for finding all primes between 2 and n . The algorithm executes in time proportional to n (assuming that multiplication of integers not larger than n can be performed in unit time). The method has the same arithmetic complexity as the algorithm presented by Mairson [6]; however, our version is perhaps simpler and more elegant. It is also easily extended to find the prime factorization of all integers between 2 and n in time proportional to n .
Cited by 44 works. doi:10.1145/359657.359660 Open-access PDF
Authors
References
- The Art of Computer Programming
- Riemann's Hypothesis and tests for primality
- Guarded commands, nondeterminacy and formal derivation of programs
- Class number, a theory of factorization, and genera
- Topics in number theory
- Some new upper bounds on the generation of prime numbers
- The Multiple Assignment Statement