The supplied congruence is a congruence of squares, since . Hence
A 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 gives
For example the successive remainders for the first computation are ; for the second they are . Therefore
Both 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 (0)

There are currently no matching articles.