Skip to content

DARC is open. Join in.

JoinBecome a maintainer
DARC
■ Change #445 · wiki.edited

Deterministic construction of an n-bit prime in time polynomial in n (current best 2^(n/2+o(n))): Normalize Markdown to canonical form

by DARC wiki2026-10-25 01:02:52 UTCOpen the page →
body
− Given $N=2^n$, output a prime in $[N,2N]$ by a deterministic algorithm. A randomised algorithm picks random integers and tests primality (Miller–Rabin, or deterministically by Agrawal–Kayal–Saxena, 2004): its expected running time is $\mathrm{poly}(n)$ because primes have density $\sim 1/\ln N$. *Is there a deterministic algorithm running in time $\mathrm{poly}(n)$, i.e. $(\log N)^{O(1)}$?* The best unconditional algorithm takes $N^{1/2+o(1)}$ time, exponential in $n$. The problem is a clean test case for derandomisation: it is a search problem in a dense set whose density is known.
+ Given $N=2^n$, output a prime in $[N,2N]$ by a deterministic algorithm. A randomised algorithm picks random integers and tests primality (Miller–Rabin, or deterministically by Agrawal–Kayal–Saxena, 2004): its expected running time is $\mathrm{poly}(n)$ because primes have density $\sim 1/\ln N$. _Is there a deterministic algorithm running in time $\mathrm{poly}(n)$, i.e. $(\log N)^{O(1)}$?_ The best unconditional algorithm takes $N^{1/2+o(1)}$ time, exponential in $n$. The problem is a clean test case for derandomisation: it is a search problem in a dense set whose density is known.
hash 18493d2820c165fd0ee73e54fe99bb2d7aae784834ea917b980ab7bbc2c74483
previous f9c6e036b64542adb146c1bc0fe3c73556423f2849f01f5ea7ff73a73faa526b