skip to main content
OSTI.GOV title logo U.S. Department of Energy
Office of Scientific and Technical Information

Title: Multiprocessing the Sieve of Eratosthenes

Journal Article · · Computer; (United States)

More than two thousand years ago, Eratosthenes of Cyrene described a procedure for finding all prime numbers in a given range. This straightforward algorithm, known as the Sieve of Eratosthenes, is to this day the only procedure for finding prime numbers. In recent years it has been of interest to computer scientists and engineers because it serves as a convenient benchmark against which to measure some aspects of a computer's performance. Specifically, the Sieve tests the power of a machine (or of a compiler) to access a very large array in memory rapidly and repeatedly. This power is clearly influenced by memory access time, the speed at which indexing is done, and the overhead of looping. The parallel version of the Sieve is very useful as a test of some of the capabilities of a parallel machine. The parallel algorithm is straightforward, and so is the process for checking the final results. However, the efficient implementation of the algorithm on a real parallel machine, especially in the dynamic load-balancing case, requires thoughtful design.

Research Organization:
Univ. of Engineering and Technology, Lahore
OSTI ID:
6537844
Journal Information:
Computer; (United States), Vol. 20:4
Country of Publication:
United States
Language:
English