English

A primality test for $Kp^\ell - 1$ numbers

Number Theory 2026-04-30 v2

Abstract

We develop an algebraic framework over arbitrary quadratic fields L=Q(D)L = \mathbb{Q}(\sqrt{D}) to generalize the Miller-Rabin primality test. Consequently, we present a deterministic primality test for integers of the form N=Kp1N = K p^{\ell} - 1 that requires only a single modular exponentiation and achieves a computational complexity of O~(log2N)\tilde{\mathcal{O}}(\log^2 N). Furthermore, we also establish an analogue of Korselt's criterion within this setting. Finally, computational data generated using SageMath confirm its efficiency, successfully establishing the primality of numbers in the associated quadratic field within milliseconds.

Keywords

Cite

@article{arxiv.2604.18498,
  title  = {A primality test for $Kp^\ell - 1$ numbers},
  author = {Anuj Jakhar and Mahesh Kumar Ram},
  journal= {arXiv preprint arXiv:2604.18498},
  year   = {2026}
}

Comments

14 pages. Comments are welcome

R2 v1 2026-07-01T12:18:44.885Z