A factorial-product divisibility criterion for primes with primitive root 2

George Tsoukalas, Anton Kovsharov, Sergey Shirobokov, Anja Surina, Moritz Firsching, Gergely Bérczi, Francisco J. R. Ruiz, Arun Suggala, Adam Zsolt Wagner, Eric Wieser, Lei Yu, Aja Huang, Miklós Z. Horváth, Andrew Ferraiuolo, Henryk Michalewski, Edward Lockhart, Codrut Grosu, Thomas Hubert, Matej Balog, Pushmeet Kohli, Swarat Chaudhuri

Let a(j)=2j−1∏i=1j−1(2i−1)/j!a(j)=2^{j-1}\prod_{i=1}^{j-1}(2^i-1)/j! for j≥1j\ge1. If an integer n>2n>2 divides a(n−1)+2n−2a(n-1)+2^{n-2}, then nn is prime and 2 has multiplicative order n−1n-1 modulo nn. The proof compares prime exponents in the product and factorial to rule out composites with an odd prime factor. It handles powers of two separately and uses the order of 2 to exclude the remaining primes.

What was already known

Amiram Eldar and Thomas Ordowski recorded that primes with primitive root 2 pass the test. They conjectured the converse in 2020.

How the result developed

  1. 8 Jun 2026 · Manuscript date [1]

    George Tsoukalas and colleagues reported the AI-assisted result in this manuscript.

  2. 20 Oct 2026 · Statement and sequence check disclosed [2]

    Carlos Toledo reported that the Lean statement matches the A091669 conjecture and that its translated sequence agrees with the published terms over the tested range.

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

AI involvementAI-autonomous
ImportanceModest
Technical verificationFormal (Lean)
Human understandingFew

AI involvement

AlphaProof Nexus proved the conjecture for OEIS A091669 as part of the team’s OEIS evaluation. The authors report, The agent found proofs for 44 conjectures. The team used Gemini to formalize the questions and reviewed the resulting statements for fidelity.

Importance

The condition tests both primality and the order of 2 using a single factorial-product congruence.

Technical verification

Google DeepMind reports that its Lean validator accepted the completed proof against the supplied statement. SafeVerify checks the theorem and rejects unproved steps or disallowed axioms.

Formal checking

Google DeepMind reports that its Lean validator accepted the completed proof against the supplied statement. SafeVerify checks the theorem and rejects unproved steps or disallowed axioms.

Checker
Google DeepMind’s AlphaProof Nexus Lean 4 validator
Scope
Let a(j)=2j−1∏i=1j−1(2i−1)/j!a(j)=2^{j-1}\prod_{i=1}^{j-1}(2^i-1)/j! for j≥1j\ge1. If an integer n>2n>2 divides a(n−1)+2n−2a(n-1)+2^{n-2}, then nn is prime and 2 has multiplicative order n−1n-1 modulo nn.
Basis
Reported by the linked checker

Human understanding

A human-authored explanation of the agent’s argument is undocumented. The proof summary in the later OEIS Open evaluation describes a separate AI proof and was generated by a language model.

Other useful sources

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

Eldar and Ordowski supplied the forward implication and conjectured the converse. The agent uses prime valuations to rule out composite n and a factor from a short multiplicative order to rule out nonprimitive 2. Adamczewski’s August evaluation gives a later solution of the same implication.