The problem
A prime is a whole number greater than one with no positive divisors except one and itself. Ask a computer for a prime with exactly three binary digits, written using only 0 and 1: 5, written 101, works because three-digit binary numbers run from 4 through 7. The general request specifies the number of digits. Can one fixed algorithm always produce a prime of that length, without random choices, in a number of steps bounded by a fixed power of the requested length, such as its square or cube? Quickly checking whether a chosen number is prime is a different task from choosing one.[1]
Can a single deterministic algorithm always construct a prime with exactly the requested number of binary digits in polynomial time? The input is the unary string , meaning n copies of the symbol 1, with . The output must be prime and satisfy . For , has binary representation 101 and lies in the required interval. Running time is bounded by for fixed constants C and k independent of n; no random bits or unproved number-theoretic hypothesis are allowed. A polynomial-time primality test checks a candidate but does not choose one. A pseudodeterministic construction still uses randomness, with high-probability agreement on a canonical output for each length where its success guarantee holds. That agreement concerns the answer rather than identical computational choices.[1]
Scope
Given unary input 1ⁿ with n≥2, output a prime p satisfying 2ⁿ⁻¹≤p<2ⁿ using a deterministic algorithm with running time polynomial in n.
What remains open
The cited prime-construction theorem supplies a polynomial-time pseudodeterministic algorithm with its success guarantee on infinitely many lengths, not a deterministic construction for every length. The 2026 preprint conditionally classifies a separate search task, Weak-Bertrand, for the much wider interval . That conditional classification does not solve the exact n-bit target.[1] [2]
Why it matters
An existence argument says a suitable number is there; a checking algorithm recognizes it when someone supplies it. Neither automatically gives an efficient way to select it. This problem isolates that gap for a familiar mathematical object and asks whether random choices can be removed from the construction itself.[1]
Primes make the difference between verification and construction especially sharp: an output has a concise description and can be efficiently checked, yet finding one uniformly within the required time remains a separate demand. This is a test case for replacing randomness in search, where a program must deliver a mathematical object rather than only decide whether one exists. A solution would turn every binary-length request into a reproducible construction with a worst-case time guarantee. Density, reproducible randomized outputs and conditional classifications of other intervals each supply different information about that broader constructive aim.[1]
Definitions
3 terms
N-bit
Having exactly n binary digits. A positive integer p is n-bit precisely when .[1]
Polynomial time
A worst-case running-time bound , where n is input length and C and k are fixed constants. Here the unary request for n binary digits has length n.[1]
Pseudodeterministic
A randomized algorithm with a guarantee of high-probability agreement on one designated output for a given input. It still makes random choices; the cited prime result’s success guarantee holds for infinitely many lengths.[1]
Sources
- Polynomial-Time Pseudodeterministic Construction of Primes
Notes on Polynomial-Time Pseudodeterministic Construction of Primes
Selected author-hosted FOCS paper states infinitely-often randomized canonical prime construction, distinct from deterministic construction.
- Hierarchies within TFNP: building blocks and collapses
Notes on Hierarchies within TFNP: building blocks and collapses
Selected September 2026 preprint discusses a conditional classification for a wider prime interval, not the exact n-bit target.