euclidean algorithm

1 answer

http://en.wikipedia.org/wiki/Euclidean_algorithm