Euclid's Algorithm

"In mathematics, the Euclidean algorithm, or Euclid's algorithm, is an efficient method for computing the greatest common divisor (GCD) of two integers, also known as the greatest common factor (GCF) or highest common factor (HCF). It is named after the Greek mathematician Euclid, who described it in Books VII and X of his Elements."

http://en.wikipedia.org/wiki/Euclidean_algorithm
First Number: Second Number: