Work

Primality testing algorithms

Year: 1980
Type: article
Abstract: IntroductionMost methods that are used to decide whether a given integer n > l is prime or composite deal much more easily with composite numbers than with prime numbers.This is, in particular, true for the methods that are based on Fermat's theorem, asserting that a ° a mod n for all prime numbers n and all integers a.A single a not satisfying this congruence suffices to prove that n is composite, without, however, yielding a factorization of n.But not every composite n can be proved composite in this way: the composite numbers n = 561 = 3-11-17, 1105 = 5-13-17, 1729 = 7-13-19, and probably infinitely many others, have the property that a s a mod n for all integers a.A stronger version of Fermat's theorem, which does not have this defect, states that (1.1) a(n-D/2 m g = ±1 mod n for all odd primes n and all integers a ^ 0 mod n.Here (-) denotes the Jacobi symbol, for a e 2Z and n an odd positive integer.It can be proved that for odd, composite n at most half, and usually much less, of all a e {l, 2, ..., n-l) satisfy (1.1).For any a in this ränge, a n ' mod n and (-) can be calcu-
Language: English
Open Access status: green
OpenAlex ID: W1493361063
FWCI: 1.52
Cites: 8
Cited by: 20
Related to: 10