Foundations · Number theory

gcd and the Euclidean algorithm

The greatest common divisor of two integers can be found by repeated division, long before either number is factored.