cronokirby

(2026-01) An improved random AKS-class primality proving algorithm

2026-01-13

Abstract

We present an improved AKS condition (eS+de1de1)nde/3\binom {e \cdot |S|+ de - 1}{de - 1} \ge n^{\lceil \sqrt{d e/3} \rceil} for the random AKS algorithm, where S|S| is the number of congruences to be tested, ee the degree of the modulo polynomial xerx^e-r and dd the multiplicative order of nn modulo ee. It is based on Bernstein's result and better than his condition (eS+e1e1)>nd2e/3\binom {e \cdot |S|+ e - 1}{e - 1} > n^{\lceil \sqrt{d^2 e/3} \rceil} when d>1d>1; this improved condition enables us to choose a smaller ee: theoretically by a factor >d> d (d(\logn)O(1)d \in (\log n)^{O(1)}) and numerically d2\ge d^2 and <d3< d^3 for most practical cases; and thus improves time and space complexities.