Skip to Main content Skip to Navigation
Conference papers

Close to Uniform Prime Number Generation with Fewer Random Bits

Abstract : In this paper, we analyze several variants of a simple method for generating prime numbers with fewer random bits. To generate a prime p less than x, the basic idea is to fix a constant q ∝ x 1−ε , pick a uniformly random a < q coprime to q, and choose p of the form a + t · q, where only t is updated if the primality test fails. We prove that variants of this approach provide prime generation algorithms requiring few random bits and whose output distribution is close to uniform, under less and less expensive assumptions: first a relatively strong conjecture by H. Montgomery, made precise by Friedlander and Granville; then the Extended Riemann Hypothesis; and finally fully unconditionally using the Barban–Davenport–Halberstam theorem. We argue that this approach has a number of desirable properties compared to previous algorithms. In particular: – it uses much fewer random bits than both the "trivial algorithm" (testing random numbers less than x for primality) and Maurer's almost uniform prime generation algorithm; – the distance of its output distribution to uniform can be made arbitrarily small, unlike algorithms like PRIMEINC (studied by Brandt and Damgård), which we show exhibit significant biases; – all quality measures (number of primality tests, output entropy, randomness, etc.) can be obtained under very standard conjectures or even unconditionally, whereas most previous nontrivial algorithms can only be proved based on stronger, less standard assumptions like the Hardy–Littlewood prime tuple conjecture.
Document type :
Conference papers
Complete list of metadata

Cited literature [27 references]  Display  Hide  Download

https://hal.inria.fr/hal-01094062
Contributor : Pierre-Alain Fouque <>
Submitted on : Thursday, December 11, 2014 - 3:46:37 PM
Last modification on : Thursday, April 4, 2019 - 10:18:05 AM
Long-term archiving on: : Thursday, March 12, 2015 - 10:56:12 AM

File

1406.7078v1.pdf
Files produced by the author(s)

Identifiers

Citation

Pierre-Alain Fouque, Mehdi Tibouchi. Close to Uniform Prime Number Generation with Fewer Random Bits. ICALP 2014 - 41st International Colloquium on Automata, Languages and Programming, Jul 2014, Copenhague, Denmark. pp.11, ⟨10.1007/978-3-662-43948-7_82⟩. ⟨hal-01094062⟩

Share

Metrics

Record views

80

Files downloads

235