Paper record
W1964053266A Fast Monte-Carlo Test for Primality
R. M. Solovay, Volker Strassen
- Year
- 1977
- Venue
- SIAM Journal on Computing
- References
- 3
- Cited by
- 717
Details and counts from OpenAlex.
Abstract
Let n be an odd integer. Take a random number a from a uniform distribution on the set $\{1, 2,\cdots, n -1\}$. If a and n are relatively prime, compute the residue , where $ - 1 \leqq \varepsilon < n - 2$, and the Jacobi symbol . If , decide that n is prime. If either or $\varepsilon \ne \delta $ decide that n is composite. Obviously, if n is prime, the decision made will be correct. We will show below, that for composite n the probability of an incorrect decision is . The number of multiprecision operations needed for the whole procedure is . m-fold repetition using independent random numbers yields a Monte-Carlo test for primality with error probabilities 0 (if n is prime) and (if n is composite) and with multiprecision arithmetic cost .