arXiv Science⌕ Search

arXiv · 2612.00059

A probable-prime test with a proven per-input error bound from anchored roots of unity

Abstract

We describe A4, a probabilistic primality test with one-sided error. A prime is never rejected. For every composite $n$ the answer "probable prime" has probability at most $2^{-e}$ over the random choices of the test (independent, uniform and unknown to whoever chose $n$), where $e\ge k$ is computed from $n$ before any random choice and printed with the answer. The test takes roots of unity from the small prime factors of $n-1$ and $n+1$ that trial division finds, verifies with one or two fixed exponentiations that their orders are exact modulo every prime divisor of $n$, and requires random elements of $(\mathbb{Z}/n)^*$ and of a quadratic extension to project into the cyclic groups that these roots generate. From about 1000 bits on (for $k=128$), one Frobenius condition settles composites with at most four prime factors, by the estimates of Damgård and Frandsen; for five or more, the logarithms of the verified orders, summed over the rounds, must reach $k/4$. On 424 random primes of 512 to 8192 bits, drawn after the planner of version 1 was tuned, a decision with the proven bound $2^{-128}$ cost 5.4 to 7.7 Miller-Rabin rounds on average, against 19 to 26 for Seysen's SQFT3 in the same arithmetic and 64 for Miller-Rabin itself; A4 was faster than SQFT3 on 423 of the 424 primes. Baillie-PSW, which has no proven bound, was 2 to 3 times faster than A4, and SQFT3 rejected products of two random primes slightly faster. Inputs whose $n^2-1$ has few small prime factors gain nothing. The ingredients are published; the contributions are their combination under one exponent proved for each input from the orders verified on both sides of $n$, three refinements, their proofs, and measurements. The counting lemmas and the acceptance sets of the program were checked by exhaustive enumeration on small moduli.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Alper Ferudun. 2026-11-29. A probable-prime test with a proven per-input error bound from anchored roots of unity. https://arxiv.science/abs/2612.00059

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

P-adic Asai L-functions for quadratic Hilbert eigenforms

We construct p-adic Asai L-functions for cuspidal automorphic representations of GL2 / F, where F is a real quadratic field in which p splits. Our method relies on higher Hida theory for Hilbert modular surfaces with Iwahori level at one prime above p.

math.NT↗

Lower bounds for high moments of zeta sums

For $2\le x\le T$, put $L=\min(x,T/x)$. We prove the unconditional lower bound \[ \frac1T\int_T^{2T}\left|\sum_{n\le x}n^{-it}\right|^{2k}\dd t \gg_k x^k\bigl(\log(2L)\bigr)^{(k-1)^2} \] for each fixed real $k\ge2$. Under the Riemann hypothesis we obtain a matching upper bound for every fixed real $k>2$, uniformly in $x$. For positive integral $k$, the Steinhaus moment asymptotic of Harper, Nikeghbali and Radziwiłł gives an explicit leading constant for this time average when $x\to\infty$ and $x^k=o(T)$. Unconditionally, the fourth moment has order $x^2\log(2L)$ throughout $2\le x\le T$. For each fixed integer $k\ge3$ and $0<\varepsilon<1/k$, we also obtain the unconditional order $x^k(\log(2T/x))^{(k-1)^2}$ for $T^{1-1/k+\varepsilon}\le x\le T$. In particular, at $x=T/\log T$ the logarithmic factor in each of these integer moments has order $(\log\log T)^{(k-1)^2}$.

math.NT↗

Potential Automorphy of K3 Surfaces with Large Picard Rank

The first part of this paper studied $\mathrm{GSp}_4$-type abelian varieties and the corresponding compatible systems of $\mathrm{GSp}_4$ representations. Techniques in \cite{BCGP} are applied to show that one can prove the potential modularity of these abelian varieties and compatible systems under some conditions that guarantee a sufficient amount of good primes. Then, in the second part, we use the potential modularity theorems to prove that K3 surfaces over totally real field $F$ with Picard rank $\ge 17$ are potentially modular.

math.NT↗