Cache optimized linear sieve
Cite this paper
×
@misc{jrai2011cache,
title = {Cache optimized linear sieve},
author = {A. Járai and E. Vatai},
year = {2011},
eprint = {1111.3297},
archivePrefix = {arXiv},
primaryClass = {cs.DS},
url = {https://arxiv.org/abs/1111.3297}
}
Járai, A., & Vatai, E. (2011). Cache optimized linear sieve [Preprint]. arXiv. https://doi.org/10.48550/arXiv.1111.3297
JÁRAI A, VATAI E. Cache optimized linear sieve[EB/OL]. (2011-11-14)[2026-11-29]. https://arxiv.org/abs/1111.3297.
Abstract
Sieving is essential in different number theoretical algorithms. Sieving with large primes violates locality of memory access, thus degrading performance. Our suggestion on how to tackle this problem is to use cyclic data structures in combination with in-place bucket-sort. We present our results on the implementation of the sieve of Eratosthenes, using these ideas, which show that this approach is more robust and less affected by slow memory.
Post #1 · the paper