English

Algorithms for Carmichael numbers

Number Theory 2026-01-14 v3

Abstract

Our primary concern is the computational complexity of algorithms that find all Carmichael numbers less than some specified bound BB. We have three related results. First, we show CARMICHAELS is in P\textbf{P}, where only the run-time is conditioned on the ERH. Second, we state a heuristically optimal tabulation algorithm, which is the first asymptotic improvement to tabulation algorithms in the 5050 years since Swift first described the prime-by-prime approach. Third, we implemented a related algorithm that tabulated 100100 times further while only doing about 55 times the work of the prior tabulation. We found 308,279,939308,279,939 Carmichael numbers less than 102410^{24} and we provide some statistics on these numbers.

Keywords

Cite

@article{arxiv.2506.09903,
  title  = {Algorithms for Carmichael numbers},
  author = {Andrew Shallue and Jonathan Webster},
  journal= {arXiv preprint arXiv:2506.09903},
  year   = {2026}
}