Paper record

W2040572975

A sublinear additive sieve for finding prime number

Paul Pritchard

Year
1981
Venue
Communications of the ACM
References
7
Cited by
70

Details and counts from OpenAlex.

Abstract

greater bit complexity than Eratos~henes' sieve, even when they use the fastest known multiplication algorithm (that of Schonhiige and Strassen; see [1]).We present here a sublinear additive sieve algorithm.It is obtained by first transforming a linear multiplicative sieve algorithm developed by Mairson [8] so that only O(N/log log N) operations are required.We then show how multiplications can be avoided, giving an algorithm with an arithmetic complexity of O(N/log log N) additions. Mairson's Abstract AlgorithmFor n >_ 2, let lp(n) denote the smallest prime factor of n.Mairson's algorithm is based on the following theorem: A new algorithm is presented for the problem of finding all primes between 2 and N. It is based on Mairson's sieve algorithm which uses O(N) additions and multiplications.The new algorithm improves on this algorithm by using a dynamic sieve technique that avoids most of the nonprimes in the range 2 to N, and by using a tabulation method to simulate multiplications.It is shown to require O(N/log log N) additions.A related algorithm is outlined that has the same complexity but a storage requirement of only O(N/log log N) bits.