Deterministic Miller primality test

Unlocked AI-classified Computational number theory

Not yet human-checked. Classified by an AI system from its reading of the literature. No human expert has checked this entry yet. Treat the status as a draft, not as settled.

Statement

An odd integer n > 1 is prime if and only if it passes the Miller strong-pseudoprime test for every base a up to 2 (ln n)^2. This gives a deterministic primality test that runs in polynomial time.

n odd and composite  ⟹  some a≤2(ln⁡n)2 is a Miller witness for nn \text{ odd and composite} \;\Longrightarrow\; \text{some } a \le 2(\ln n)^2 \text{ is a Miller witness for } n

What it needs

  • GRH-Dirichlet GRH for Dirichlet L-functions Covered by the claim

    Every non-trivial zero of every Dirichlet L-function has real part 1/2. Dirichlet L-functions are built from characters of the integers modulo q and control how primes are distributed among residue classes.

Status and why

Unlocked

Every hypothesis this result needs is covered by the announced proof. It follows from that proof, and stands or falls with it.

Every hypothesis listed above (GRH-Dirichlet) is covered by the announced proof.

Note. Miller proved a bound of the form c (ln n)^2. Bach made the constant 2 explicit. Primality testing in polynomial time is known unconditionally by a different algorithm (see the AKS entry), so what is unlocked here is the correctness of this specific, much faster test.

Sources

  1. Conditional proof G. L. Miller (1976). Riemann's hypothesis and tests for primality. J. Comput. System Sci. 13, 300-317. doi:10.1016/S0022-0000(76)80043-8
    Hypothesis used at: Theorem 2. The Appendix defines ERH for the L-functions of the Legendre, Jacobi and q-th power residue characters, all Dirichlet characters
  2. Refinement E. Bach (1990). Explicit bounds for primality testing and related problems. Math. Comp. 55, 355-380. doi:10.1090/S0025-5718-1990-1023756-8
    Hypothesis used at: Theorem 2 and the remarks after Theorem 3

Review

Review state
AI-classified Classified by an AI system from its reading of the literature. No human expert has checked this entry yet. Treat the status as a draft, not as settled.
Confidence
high
Lean
Not formalized yet.
Added
21 November 2026

Suggest a correction I checked this entry

Rests on

The proof uses these results as ingredients.

Related entries

primality algorithms derandomization