English

Cache optimized linear sieve

Data Structures and Algorithms 2011-11-15 v1

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.

Keywords

Cite

@article{arxiv.1111.3297,
  title  = {Cache optimized linear sieve},
  author = {A. Járai and E. Vatai},
  journal= {arXiv preprint arXiv:1111.3297},
  year   = {2011}
}
R2 v1 2026-06-21T19:35:53.971Z