Recognizing Carmichael numbers is in P, with unconditionally correct output
Unlocked AI-classified Complexity 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
There is a deterministic algorithm that decides whether a given integer n is a Carmichael number and runs in time polynomial in log n. When n is a Carmichael number the algorithm finds its complete prime factorization, using Fermat tests to the bases b < 2 (log n)^2, so its answers are always correct.
No formal statement recorded yet.
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. The paper's hypothesis is the Extended Riemann Hypothesis, used only for the running time: correctness is unconditional. It is invoked through Theorem 1.4.5 of Crandall and Pomerance (reference [8]) to guarantee that for distinct primes q1, q2 some b < 2 (log q1 q2)^2 is a square modulo one and not the other, or a non-square modulo q2. These are statements about small elements outside proper subgroups of the multiplicative group modulo an integer, which is the Dirichlet L-function case. The paper does not spell out which L-functions it means by ERH.
Sources
- Conditional proof A. Shallue, J. Webster (2026). Algorithms for Carmichael numbers. Preprint.Hypothesis used at: Theorem 4
Review
Open questions
- The paper does not define ERH. That only Dirichlet L-functions are needed is read from the use made of it (Miller-style bounds on least non-residues and on least elements outside a subgroup modulo q1 q2) and from the cited textbook theorem, which was not consulted.