The supplied congruence is a congruence of squares, since . HenceA nontrivial square root modulo a product of two odd primes may agree with modulo one prime and modulo the other. Taking greatest common divisors separates these factors. The Euclidean algorithm givesFor example the successive remainders for the first computation are ; for the second they are . ThereforeBoth numbers are prime by trial division by primes at most their square roots. More generally, given with , computing often produces a proper factor. The method requires no prior knowledge of which prime gives which sign, and is the basic factor-extraction step in congruence-of-squares algorithms.
Articles by others on the same topic
There are currently no matching articles.