Two Fast Parallel Prime Number Sieves

A prime number sieve is an algorithm that lists all prime numbers up to a given bound n. Two parallel prime number sieves for an algebraic EREW PRAM model of computation are presented and analyzed. The first sieve runs in O(log n) time using O(n/(log n log log n)) processors, and the second sieve runs in O(root n) time using O(root n) processors. The first sieve is optimal in the sense that it performs work O(n/log log n), which is within a constant factor of the number of arithmetic operations used by the fastest known sequential prime number sieves. However, when both sieves are analyzed on the Block PRAM model as defined by Aggarwal, Chandra, and Snir, it is found that the second sieve is more work-efficient when communication latency is significant.

[1]  Satoru Kawai,et al.  Parallel Sieve Methods for Generating Prime Numbers , 1980, IFIP Congress.

[2]  Richard Cole,et al.  Faster Optimal Parallel Prefix Sums and List Ranking , 2011, Inf. Comput..

[3]  Paul Pritchard,et al.  Fast Compact Prime Number Sieves (among Others) , 1984, J. Algorithms.

[4]  Alok Aggarwal,et al.  On communication latency in PRAM computations , 1989, SPAA '89.

[5]  I Parberry Parallel speedup of sequential machines: a defense of parallel computation thesis , 1986, SIGA.

[6]  Jerry L. Trahan,et al.  The power of parallel random access machines with augmented instruction sets , 1989, [1989] Proceedings. Structure in Complexity Theory Fourth Annual Conference.

[7]  Paul Pritchard,et al.  Programming Techniques and Data Structures a Sublinear Additive Sieve for Finding Prime Numbers , 2022 .

[8]  C. Bays,et al.  The segmented sieve of eratosthenes and primes in arithmetic progressions to 1012 , 1977 .

[9]  Ian Parberry,et al.  Parallel complexity theory , 1987, Research notes in theoretical computer science.

[10]  Jerry L. Trahan,et al.  Multiplication, Division and Shift Instructions in Parallel Random Access Machines , 1992, Theor. Comput. Sci..

[11]  E. Wright,et al.  An Introduction to the Theory of Numbers , 1939 .

[12]  Leslie M. Goldschlager,et al.  A universal interconnection pattern for parallel computers , 1982, JACM.

[13]  Paul Pritchard Linear Prime-Number Sieves: A Family Tree , 1987, Sci. Comput. Program..

[14]  Harry G. Mairson Some new upper bounds on the generation of prime numbers , 1977, CACM.

[15]  Shahid H. Bokhari Multiprocessing the Sieve of Eratosthenes , 1987, Computer.