Also known as the difference of squares. It was first used by Fermat and improved by Gauß. Gausslooked for Integers and satisfying
for various moduli . This allowed the exclusion of many potential factors. This method works best when factors areof approximately the same size, so it is sometimes better to attempt for some suitably chosen value of .See also Prime Factorization Algorithms