paper

A quantum primality test with order finding

arXiv:1711.02616 · doi:10.26421/QIC17.13-14

Abstract

Determining whether a given integer is prime or composite is a basic task in number theory. We present a primality test based on quantum order finding and the converse of Fermat's theorem. For an integer , the test tries to find an element of the multiplicative group of integers modulo with order . If one is found, the number is known to be prime. During the test, we can also show most of the times is composite with certainty (and a witness) or, after unsuccessful attempts to find an element of order , declare it composite with high probability. The algorithm requires operations for a number with bits, which can be reduced to operations in the asymptotic limit if we use fast multiplication.

5 pages. Comments welcome

References in corpus (5)

Cited by in corpus (18)