A space-efficient fast prime number sieve
We present a new algorithm that finds all primes up to n using at most O( n log log n ) arithmetic operations and O( n (log n log log n) ) space. This algorithm is an improvement of a linear prime number sieve due to Pritchard. Our new algorithm matches the running time of the best previous prime nu...
Saved in:
| Published in: | Information processing letters Vol. 59; no. 2; pp. 79 - 84 |
|---|---|
| Main Authors: | , , |
| Format: | Journal Article |
| Language: | English |
| Published: |
Amsterdam
Elsevier B.V
22.07.1996
Elsevier Science Elsevier Sequoia S.A |
| Subjects: | |
| ISSN: | 0020-0190, 1872-6119 |
| Online Access: | Get full text |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| Summary: | We present a new algorithm that finds all primes up to
n using at most
O(
n
log log n
)
arithmetic operations and
O(
n
(log n log log n)
)
space. This algorithm is an improvement of a linear prime number sieve due to Pritchard. Our new algorithm matches the running time of the best previous prime number sieve, but uses less space by a factor of
Θ (
log
n). In addition, we present the results of our implementations of most known prime number sieves. |
|---|---|
| Bibliography: | ObjectType-Article-1 SourceType-Scholarly Journals-1 content type line 14 |
| ISSN: | 0020-0190 1872-6119 |
| DOI: | 10.1016/0020-0190(96)00099-3 |