@inproceedings{7f13d117baec426ab1b0853bf2ca285b,
title = "The I/O complexity of computing prime tables",
abstract = "We revisit classical sieves for computing primes and analyze their performance in the external-memory model. Most prior sieves are analyzed in the RAM model, where the focus is on minimizing both the total number of operations and the size of the working set. The hope is that if the working set fits in RAM, then the sieve will have good I/O performance, though such an outcome is by no means guaranteed by a small working-set size. We analyze our algorithms directly in terms of I/Os and operations. In the external-memory model, permutation can be the most expensive aspect of sieving, in contrast to the RAM model, where permutations are trivial. We show how to implement classical sieves so that they have both good I/O performance and good RAM performance, even when the problem size N becomes huge—even superpolynomially larger than RAM. Towards this goal, we give two I/O-efficient priority queues that are optimized for the operations incurred by these sieves.",
keywords = "External-memory algorithms, Prime tables, Priority queues, Sorting",
author = "Bender, {Michael A.} and Rezaul Chowdhury and Alexander Conway and Mart{\'i}n Farach-Colton and Pramod Ganapathi and Rob Johnson and Samuel McCauley and Bertrand Simon and Shikha Singh",
note = "Funding Information: This research was supported by NSF grants CCF 1217708, IIS 1247726, IIS 1251137, CNS 1408695, CCF 1439084, CNS-1408782, IIS-1247750, and Sandia National Laboratories Publisher Copyright: {\textcopyright} Springer-Verlag Berlin Heidelberg 2016.; 12th Latin American Symposium on Theoretical Informatics, LATIN 2016 ; Conference date: 11-04-2016 Through 15-04-2016",
year = "2016",
doi = "10.1007/978-3-662-49529-2_15",
language = "English (US)",
isbn = "9783662495285",
series = "Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)",
publisher = "Springer Verlag",
pages = "192--206",
editor = "Gonzalo Navarro and Evangelos Kranakis and Edgar Ch{\'a}vez",
booktitle = "LATIN 2016",
address = "Germany",
}