WorksMathematics
Deterministic Polynomial-Time Primality Testing with a Single Binomial Congruence
Abstract
We give a deterministic polynomial-time primality test whose main verification is the congruence in , where . Two identities in the coefficient ring normalize and ensure compatibility with the main congruence. A finite-field root count and a lattice bound show that an accepted input is a prime power; elementary preprocessing excludes nontrivial perfect powers. We construct deterministically using Jacobi sums and the uniform Dedekind-zeta zero-free theorem of Cureton and Thorner, which extends OpenAI's Hecke zero-free theorem. The total bit complexity is , where , and verification after constructing costs . More generally, for a fixed real algebraic , a common zero-free boundary for the relevant Dedekind zeta functions gives . This bound reaches at , and hence under GRH. We state a fixed-base modification of Agrawal's conjecture for odd integers passing the base- Fermat test, using the modulus with the least positive integer not dividing .
Introduction
For a prime , the identity
holds in every commutative algebra of characteristic . A primality test based on this identity must choose an algebra small enough to compute in and sufficiently restrictive to exclude composite inputs. We construct such an algebra deterministically, using one shift, one binomial relation, and exponent .
The coefficient ring and the final algebra are
where is odd and squarefree and is the th cyclotomic polynomial. Thus the test can equally be written in the multivariate quotient
Arithmetic is performed in the full quotient, which may have zero divisors. Field quotients enter only in the proof.
For a suitable auxiliary integer , the acceptance equalities are
The single binomial congruence is (5), evaluated in . The two checks in and elementary integer preprocessing complete the test.
The deterministic parameter construction uses a uniform zero-free theorem. OpenAI proved a common width for finite-order Hecke -functions over cyclotomic fields containing [11 Theorem 1.2]. Cureton and Thorner extended this approach to all number fields and obtained the following stronger result.
Theorem 1.1 (Cureton–Thorner [9 Theorem 1.1]). For every number field , its Dedekind zeta function satisfies
This theorem has a published Lean formalization generated with AxiomProver [3]. We use in the main algorithm, so that its search cutoff is computed by integer powering. We retain in the estimates to exhibit the effect of stronger analytic bounds. The uniformity needed below concerns the zero-free boundary; Lemma 4.1 separately makes the effective dependence on field degree and discriminant explicit.
The main result uses Theorem 1.1 as its analytic input. Corollary 6.1 gives the dependence of the running time on a general uniform zero-free boundary. Any stronger boundary satisfying its hypotheses therefore gives the corresponding improved bound by direct substitution, with the same parameter construction and algebraic acceptance criterion. § 6.1 also identifies the threshold and the GRH endpoint.
Theorem 1.2 (Main result). There is a deterministic primality algorithm using (3)–(5) with total bit complexity
Its parameters satisfy
Verification after constructing costs bit operations.
The proof has three components. A normalized coefficient first produces a cyclic orbit of linear factors in a field extension. Bernstein’s root-counting and lattice method [4] then excludes inputs with two distinct prime factors. Next, an Odlyzko–Pomerance construction gives , with every prime factor of of size . Finally, we construct the coefficient by combining Jacobi sums for those small prime factors. Treating the prime degrees separately keeps the number-field degrees in the auxiliary-prime estimate small.
The AKS theorem established deterministic polynomial-time primality testing [2]. Berrizbeitia and Cheng developed tests using binomial extensions and a small number of congruences [6, 7]. Bernstein gave an essentially quartic random-time primality-proving algorithm [4]; its group-size argument is the algebraic foundation used here. Lenstra and Pomerance subsequently obtained an unconditional deterministic algorithm using Gaussian periods [10]. The present construction concerns the deterministic realization of the particular congruence (5), with a normalized coefficient in the full cyclotomic quotient. Its auxiliary-prime search dominates the stated total bound.
Throughout, is the natural logarithm unless a base is displayed. The notation suppresses factors polynomial in logarithms. All complexity statements count bit operations; is as , with fixed.
An algebraic acceptance criterion
We first prove that the three acceptance identities force to be a prime power. This part of the argument depends only on the identities and the sizes of the degrees, not on how the coefficient is constructed.
Let be odd, and choose an odd squarefree integer and a positive integer such that
In particular, , so and the exponent in (3) is integral. For odd , define
Our exact size condition is
This condition uses integer arithmetic only: the logarithm floor is the bit length of minus one.
Lemma 2.1 (Cyclotomic coefficient ring). Under (6), substitution defines an automorphism of with . Each field quotient of is for some prime , where . In every such quotient the image of has order exactly .
Proof. Since , raising a primitive th root to its th power permutes the primitive roots. The integral cyclotomic relation therefore makes the substitution well-defined. An inverse is substitution by for . Also and , which prove .
A maximal ideal of lies over a prime divisor of . Because , the polynomial is squarefree in . The roots of are precisely the primitive th roots, whose Frobenius orbits have length . The quotient fields consequently have the stated degrees. Finally, implies . □
Proof. Equation (4) gives by induction. Put . Equation (5) says in . Applying to its coefficients gives . Substituting and using
gives in . Starting at , this proves the assertion by induction. No additivity of th powering for composite is used. □
Theorem 2.3 (Acceptance criterion). Suppose (6) and (8) hold. If (3)–(5) hold, then is a prime power. If is not a nontrivial perfect power, it is prime.
Proof. Put . The element is a unit, so (3) makes a unit. Suppose for a contradiction that has at least two distinct prime divisors. Choose a field quotient of as in Lemma 2.1, and put . We use the same names for the images of and . One has , and has order in $k^\times. Choose a root of in an algebraic closure of . Normalization and Lemma 2.2 imply
For the last identity, substitute in and use . Each is nonzero: otherwise , so and would have order at most two. Let be the finite multiplicative group generated by the in .
We first prove , using the signed-product count recorded by Bernstein [4 Section 3]. Consider all integer vectors for which the positive entries sum to at most and the absolute values of the negative entries also sum to at most . If exactly entries are negative, their positions can be chosen in ways, their absolute values in ways, and the remaining nonnegative entries in ways. This gives exactly vectors.
Their products are distinct. Indeed, suppose two such products are equal. Taking successive th powers rotates all indices, so the equality holds with replaced by each of the distinct elements . Clearing denominators produces an equality of two polynomials at all those elements; each polynomial has degree at most . Their difference is therefore zero by the field root bound. Unique factorization into the pairwise distinct factors , whose constant terms are all 1, makes the original exponent vectors equal. Hence
For the upper bound, , and gives for some integer . Set . Frobenius in characteristic , followed by injectivity of th powering, gives
Consider the lattice
It has determinant , because and generate the unit ideal in . The symmetric convex hexagon
has area
since . Minkowski’s convex body theorem gives a nonzero lattice point in this closed hexagon. The equality case follows by slightly enlarging the hexagon and using discreteness. Change its sign if necessary to make . If , put and ; if , put and . Equation (10) and the lattice relation give for every , and
Moreover, . For this follows from . For , equality would contradict the fact that has a prime factor other than when ; when , it would give . Every element of is consequently a root of in a field. Thus
The last inequality follows from (8), because . This contradicts (9). Therefore has only one distinct prime divisor.
Remark 2.4. The argument does not require to be irreducible modulo every prime divisor of . It takes a root in a field extension and obtains the needed distinct products from the cyclic rotation and the field root bound. Likewise, itself may have zero divisors. Its rank measures arithmetic cost, whereas the smaller number controls the lattice bound.
Choosing the degrees
We first record the size of the signed-product count. The improvement from signed products is due to Voloch and Vaaler, as explained in Bernstein’s analysis [4 Section 3].
Proposition 3.1. For odd ,
Consequently, for every fixed ,
implies (8) for sufficiently large . A simpler sufficient condition valid for odd is .
Proof. In (7), retain the term with . Stirling’s formula for its three binomial coefficients gives . For the upper bound, set . The generating function for one signed exponent, recording positive and negative weights separately, is . Every vector counted by has combined weight at most , so
Since , this has the asserted exponential rate. The asymptotic threshold follows on substituting this estimate in (8). For the simpler bound, the count includes all nonnegative 0–1 vectors of weight at most and their negatives, with zero counted once. Their number is . Hence , and for the stated range.
To meet the size condition with small , we build from primes for which . The following parameter theorem is due to Odlyzko and Pomerance; we use the form in Adleman–Pomerance–Rumely [1 Theorem 3], also used by Bernstein [4]. There is an absolute constant such that, for every sufficiently large , some positive integer satisfies
Proposition 3.2. There is a deterministic search for and odd squarefree satisfying , for every prime , and (8), with
Its cost is at most bit operations.
Proof. Enumerate even positive integers . For each, enumerate the primes with and . Multiply these primes in increasing order, checking (8) after each prefix whose product exceeds 2. If all primes are exhausted without success, continue to the next .
To bound the search, apply (11) with . The supplied is . Deleting the primes dividing removes a product at most , so the remaining product is at least for sufficiently large . Such a successful is even: if were odd, the product in (11) would contain only the prime 2. For even , excluding also excludes 2. Proposition 3.1 now guarantees success. For each fixed smaller , applying (11) with sufficiently large gives the same termination argument.
At the first successful prefix the product obeys
Conversely, Proposition 3.1’s upper estimate and (8) give , establishing the stated asymptotic scale. Each trial has small primes and divisibility checks. The exact count can be evaluated from binomial recurrences in bit operations: there are terms, each with bits. The trials fit the claimed bound. □
The factorization of is known from its construction. To enforce , test its known prime factors against . A common prime factor proves compositeness unless it equals , in which case is prime.
A uniform auxiliary-prime bound
For each prime , we seek a prime modulo which is a th power nonresidue. Such a prime will define the character used in § 5. We prove its existence for prime inputs by applying Theorem 1.1 to Kummer extensions of degree . The following smoothed estimate makes the dependence on the number field explicit.
Lemma 4.1 (Smoothed prime-ideal estimate). Fix and a nonzero nonnegative smooth function supported in . Let be a number field of degree and absolute discriminant , and suppose its Dedekind zeta function has no zeros in . Put
Then, uniformly in and ,
The implied constant is effective.
Proof. This is the smoothed explicit-formula calculation in [11 Section 9.2, especially (9.9)]; we recall the dependence on the field. Mellin inversion applied to and a contour shift from to give
where runs over nontrivial zeros with multiplicity and is the signature. The functional equation bounds the integral on the left line with the displayed dependence. The uniform zero count in a unit interval at height is . The Mellin transform decays faster than every inverse power of in bounded vertical strips. Since , the zero sum is absolutely convergent and is bounded by . The residue at zero and the left-line integral are absorbed in the same bound. These estimates have effective absolute constants for fixed .
Lemma 4.2 (Auxiliary prime for one prime degree). Fix , and suppose that for every number field , has no zeros in . There is an effective constant such that, for every prime and every odd prime , there is a prime satisfying
Proof. Set and . The prime is unramified in , so is Eisenstein at a prime of above . Thus , and is cyclic because . By hypothesis, both and are zero-free in . For the stated algorithm, Theorem 1.1 supplies this hypothesis with .
The cyclotomic discriminant bound and the discriminant of give
More explicitly, the relative discriminant divides , and the discriminant tower formula gives the second bound. Lemma 4.1 therefore yields
Consider an unramified degree-one prime of . If it splits in , its first-power contribution cancels against the contributions of the primes above it, after the factor . Otherwise it is inert, since the extension has prime degree, and its positive first-power contribution remains. A surviving prime lies above a rational prime for which is not a th power in . This is exactly the last condition in (15).
All terms of prime-ideal residue degree at least two, and all higher prime powers, contribute in absolute value at most to (16). To see the field dependence, a field of degree contributes at most ; the weighted total degree here is . Ramified degree-one first powers contribute at most , since the ramified rational primes divide .
Take . For an effectively large constant , the error in (16) is less than half its main term. The discarded terms are smaller as well, uniformly in and , because . Some surviving prime lies in . Absorbing in proves the lemma.
All primes are at most . Hence a common search bound, increased by rounding if needed, is
For the search itself it suffices to test primes ; Lemma 4.2 supplies a prime even in the smaller progression. Only prime-input existence is needed. If a search fails within the bound, the algorithm rejects.
Constructing the normalized coefficient
Characters defined by the input
For each prime , choose a prime with , , and . Put
Its order in is exactly . For define by
This is a multiplicative-group homomorphism to , written additively, and . Its values are computed by a table of the powers of .
Choose satisfying
The inverse exists by (6) and squarefreeness. In , define the order- character
In particular, and , since is odd. This construction needs neither a primitive root modulo nor a factorization of .
Jacobi sums and a binary recurrence
For positive integers , set
Here and . The terms for vanish. The other terms are powers of , so the sum is computed by counting possible exponents before reduction modulo . Define
Lemma 5.1. The element is the th power of its Gauss sum in a cyclotomic extension of . It can be computed in using only Jacobi sums, without constructing that extension.
Proof. For this proof only, work in and put . The integral Gauss–Jacobi identities give
These follow by grouping the two summation indices according to their sum; the zero-sum terms vanish in (21) because the product character is nontrivial. They are identities in integral cyclotomic rings and remain valid after reduction modulo ; see also [8 Theorem 2.4]. Iteration gives .
For a shorter computation, maintain and with , starting at , . Follow the binary expansion of after its leading bit. On a doubling, set
If the next bit is 1, then set
Every resulting index is at most , so no step uses a trivial product character. At the end, ; multiplying by gives . The coefficient ring embeds in the displayed extension, since its defining polynomial is monic, so this is an identity in . There are steps and no divisions.
Combining the prime degrees
Substitution defines a homomorphism : the polynomial is divisible by over . Form
Each computation in takes place in a ring of rank ; the substitution combines its result with the other prime degrees in the common coefficient ring .
Proposition 5.2 (Completeness on prime inputs). If is prime, the construction (23) satisfies all three equalities (3)–(5).
Proof. Put . In , th powering fixes every coefficient, because and the scalar field is . For the Gauss sum from Lemma 5.1, Frobenius and reindexing give
The scalar is invertible modulo , so (22) makes a unit. Since and , cancellation gives
This identity holds in , by its injection into the monic extension used in the proof. Substituting into (23),
Indeed, modulo each prime , all but its own summand vanish, and (18) makes the remaining exponent . The Chinese remainder theorem gives the exponent modulo . This proves (3). Finally, th powering is Frobenius in every commutative algebra of characteristic the prime . It gives and , proving the other two equalities.
The algorithm and its bit complexity
Here is the complete algorithm, with and an effective constant from Lemma 4.2 fixed in advance. One may take to be an integer, so the search bound (17) is computed by integer powering.
Reject integers below 2; accept 2 and 3; reject even inputs greater than 2. Reject nontrivial perfect powers.
Construct as in Proposition 3.2. For every prime , if , accept when and otherwise reject. Construct modulo .
Sieve the primes up to in (17). If a prime in the sieve divides , accept when it equals and otherwise reject. For every , select a prime with , , and . Reject if any such search fails.
Compute the tables , the residues , and the Jacobi-sum coefficients using the binary recurrence. Form by (23).
Proof of Theorem 1.2. If the input is prime, preprocessing cannot reject it. Lemma 4.2, using Theorem 1.1, ensures all searches succeed, and Proposition 5.2 proves acceptance. A composite input accepted at the last step would be a prime power by Theorem 2.3, contrary to the preprocessing. The earlier acceptance branches identify the input with a known prime. This proves correctness on every input.
We give the cost bounds in some detail, including the construction of the coefficient. The degree search costs by Proposition 3.2. Elementary integer-root methods for exponents up to detect nontrivial perfect powers within as well.
The sieve up to uses bit operations. Compute modulo all its primes with a product tree and a remainder tree [5]. The total bit length of these moduli is at most . With fast multiplication and division, the trees cost : at every tree level the node lengths sum to , and there are levels. This avoids an extra factor from reducing separately for each candidate.
Each small-prime modular exponentiation costs a polynomial in . There are primes , all of size . Testing the candidates for all consequently costs in total. The character tables are computed by modular exponentiation and lookup among possibilities. Each needed Jacobi sum is accumulated by scanning and counting its exponent modulo . These counts have bits; the scan does not require an -bit modular addition for each term. All scans, including the sums for each , therefore fit the same bound. Arithmetic in the local rings of rank , after reduction of the counts, costs at most over all .
Put . Fast polynomial multiplication and monic reduction give multiplication costs
These bounds apply over without assuming it is a field. For the second, polynomial multiplication in over , followed by , gives the stated bound; equivalently one may use bivariate Kronecker substitution and monic reductions. Forming (23) costs . The coefficient checks cost , because the exponents have at most bits. Substitution is performed using followed by reduction modulo .
The main congruence needs multiplications in , for total cost
Finally, is constructible by exact monic divisions from the polynomials for the known divisors . There are such divisors. Even classical polynomial division with elementary -bit coefficient arithmetic costs at most . This also shows that no polynomial-factorization subroutine is hidden in the construction. Combining the bounds gives
which proves the theorem.
The auxiliary-prime search determines the exponent in the stated bound. The construction does not factor , , or any .
Dependence on the zero-free boundary
We now record conditional improvements under stronger analytic hypotheses. The proof of Theorem 1.2 is complete without these additional inputs. For the refinements, it suffices to have a common zero-free boundary for the fields and , for prime inputs and odd primes ; a theorem over all number fields supplies this uniformly.
Corollary 6.1 (Transfer of uniform zero-free bounds). Fix a real algebraic number . Suppose that the Dedekind zeta functions of these fields have no zeros in . With a corresponding choice of search cutoff, the construction gives a deterministic primality algorithm with bit complexity
In particular, a uniform zero-free boundary at gives . Under GRH for the stated fields, the auxiliary-prime search and local Jacobi-sum computations cost , and the total cost is .
Proof. For , put in Lemma 4.2. Its proof uses only the two stated fields, so the weaker hypothesis of this corollary suffices. Since all satisfy , the common cutoff is . The sieve, remainder trees, character tables, and local Jacobi-sum computations have this same bound; the remaining work costs .
For completeness, the cutoff is effective even when the exponent is not an integer. If denotes the integer base in (17), approximate from above by a dyadic rational within . This increases its power of by at most a factor of 2. Since is fixed and algebraic, such an approximation is computable in time polynomial in . Its denominator can be , so integer powering and integer-root extraction compute an upper-rounded cutoff in time polynomial in . This cost is negligible in the displayed bound.
At the endpoint , Lemma 4.1 remains valid with . The proof of Lemma 4.2 gives an error in (16), and discarded prime-power and higher-degree terms . Choosing a sufficiently large absolute constant and taking
makes their sum, together with the ramified contribution, smaller than the main term. Thus a suitable prime satisfies
Replacing the logarithms by upper-rounded binary logarithms changes only an absolute factor. The common cutoff is consequently . The sieve, tables, and local coefficient arithmetic fit this bound. Forming from the local coefficients costs , and the remaining algebraic work costs . GRH for these Dedekind zeta functions supplies the endpoint hypothesis. Finally, gives the stated threshold.
Remark 6.2 (Extent of the analytic improvement). Every stronger uniform zero-free boundary satisfying Corollary 6.1 yields the corresponding bound in (25) by changing the auxiliary-prime search cutoff. The degree parameters, Jacobi-sum construction, and algebraic soundness proof remain the same.
The exponent supplied by (25) reaches 6 at and stays 6 throughout . Thus 6 is the best exponent obtained by improving the zero-free input alone in the present construction and cost analysis. It is an upper-bound threshold, not a lower bound for every implementation of this test. A smaller exponent would require a faster algebraic stage or a different parameter construction. In particular, the present argument does not yield a bound below the Gaussian-period algorithm of Lenstra and Pomerance [10].
The RH hypothesis here concerns the Dedekind zeta functions of the varying cyclotomic and Kummer fields. RH for alone does not supply that hypothesis. Table 1 records the resulting exponents; the terms tend to zero as , with the analytic boundary fixed.
| Analytic input | Boundary | Search exponent | Total exponent |
| Cureton–Thorner [9] | |||
| Assumed boundary | |||
| GRH for the relevant fields |
Table 1. Exponents in the bounds . The search column includes the character tables and local Jacobi-sum computations. The first row is the main result; all subsequent rows are conditional consequences of the indicated stronger analytic inputs.
Remark 6.3 (A two-equality form). If retaining the exponent is unnecessary, one may replace (4) and (5) by
Together with (3), this gives the rotation used in Theorem 2.3 directly. Prime inputs satisfy it, and the same proof applies. Its asymptotic verification bound is unchanged because , although its exponent is longer.
A fixed-base conjecture
The coefficient in the proved construction enforces the normalization needed for the cyclic rotation. A simpler possibility is to fix the coefficient at 2 and choose the degree directly from the input. The following conjecture proposes such a test for odd inputs, including a preliminary base-2 Fermat check.
Agrawal’s conjecture, as recorded in [2 Conjecture 6.1], asserts that if is prime, , and then is prime or . The conjecture below is a modification of that proposal: it uses roots of 2 in place of roots of unity, the shift , and the least nondivisor of as the degree. The two conjectures are not asserted to be equivalent.
Conjecture 7.1 (Fixed-base test). Let be odd, and let be the least positive integer not dividing . If
then is prime.
The base-2 Fermat congruence is an explicit condition of the test. The degree need not be prime. It is necessarily a prime power: otherwise it would be the least common multiple of its proper prime-power factors, each of which divides by minimality.
Proposition 7.2 (Consequence of the fixed-base conjecture). If Conjecture 7.1 holds, its test is a deterministic primality algorithm using bit operations.
Proof. Handle inputs at most 3 and even inputs directly, then reject unless (26) holds. Binary modular powering performs this preliminary check in bit operations. By the choice of ,
Chebyshev’s estimate therefore gives . Testing consecutive integers for divisibility finds within the claimed bound. Primes pass (26) by Fermat’s little theorem and (27) by Frobenius, and the conjecture excludes composites. Multiplication in costs , and binary powering uses multiplications, for total .
The open step is to obtain a comparable restriction on composite inputs from the fixed coefficient 2 and this degree rule. The normalization and cyclic rotation used in Theorem 2.3 are supplied by our coefficient construction; they have not been deduced from the congruence in Conjecture 7.1.
AI Assistance Disclosure
OpenAI’s GPT-6 Astra developed and wrote the proofs, including the deterministic parameter construction and complexity analysis, through an extended mathematical dialogue with the author. The author supplied the fixed-base test, conjectural framework, research notes, and references; proposed applying OpenAI’s recent analytic number-theoretic results to deterministic parameter selection; and directed the investigation of Jacobi sums, power nonresidues, composite degrees, multivariate quotient rings, and finite-field root counting.
References
References
- [1]L. M. Adleman, C. Pomerance, and R. S. Rumely, On distinguishing prime numbers from composite numbers, Annals of Mathematics 117 (1983), 173–206. Theorem 3 records the Odlyzko–Pomerance parameter construction. https://math.dartmouth.edu/~carlp/PDF/paper37.pdf.
- [2]M. Agrawal, N. Kayal, and N. Saxena, PRIMES is in P, Annals of Mathematics 160 (2004), 781–793. doi:10.4007/annals.2004.160.781. Agrawal’s conjecture is stated in Section 6; see also the authors’ version at https://www.cse.iitk.ac.in/users/manindra/algebra/primality_v6.pdf.DOI
- [3]Axiom Math, D. Cureton, and J. Thorner, Dedekind Zeta Zero-Free Region, Lean 4 formalization, October 2026. The declaration DedekindZetaZeroFree.main in Solution/DedekindZetaSolution.lean proves the Dedekind-zeta statement; the repository reports verification using only Lean’s standard axioms. https://github.com/AxiomMath/DedekindZetaZeroFree.
- [4]D. J. Bernstein, Proving primality in essentially quartic random time, Mathematics of Computation 76 (2007), 389–403. doi:10.1090/S0025-5718-06-01786-8. Section references are to the December 3, 2004 draft: https://cr.yp.to/papers/quartic-20041203.pdf.DOI
- [5]D. J. Bernstein, N. Heninger, and T. Lange, FactHacks: Remainder tree. https://facthacks.cr.yp.to/remainder.html.
- [6]P. Berrizbeitia, Sharpening “PRIMES is in P” for a large family of numbers, Mathematics of Computation 74 (2005), 2043–2059. doi:10.1090/S0025-5718-05-01727-8.DOI
- [7]Q. Cheng, Primality proving via one round in ECPP and one iteration in AKS, preprint, 2003. https://arxiv.org/abs/math/0301179.
- [8]K. Conrad, Gauss and Jacobi sums on finite fields and Z/mZ, expository notes. https://kconrad.math.uconn.edu/blurbs/gradnumthy/Gauss-Jacobi-sums.pdf.
- [9]D. Cureton and J. Thorner, A quasi-Riemann hypothesis for Dedekind zeta functions, Hexagon preprint 2610.02000, version 2, October 12, 2026. Theorem 1.1 and Section 15. https://hexagonmath.org/2610.02000v2.
- [10]H. W. Lenstra, Jr., and C. Pomerance, Primality testing with Gaussian periods, Journal of the European Mathematical Society 21 (2019), 1229–1269. doi:10.4171/JEMS/861.DOI
- [11]OpenAI, Primitive roots for every admissible integer base, preprint, October 4, 2026. Theorem 1.2 and Section 9. https://github.com/openai/math/blob/main/preprints/Primitive-roots-for-every-admissible-integer-base-October-4-2026/primitive-roots-all-integer-bases.pdf.hub.valency.io/works/W_c5c99wuv