Skip to content

DARC is open. Join in.

JoinBecome a maintainer
DARC
■ Change #300 · 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-23 01:09:28 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 0aebdc045a5ab7dfce8954a9f3a41dea252d93374168ad7773b4d050e5472196
previous 5c8e4760fff65044ce709d7fdadfb698885a65250d0dd2e6067d9a802654c907