Greatest Common Factor

Find the greatest common factor of two integers.

Example result

Greatest common factor: 12

Step by step

  1. Use Euclid’s algorithm on the two integers.
  2. The last nonzero remainder is the greatest common factor.