Euclid's greatest common divisor

Follow a recorded run of Euclid’s algorithm. Compare three turns of the loop with an input that needs no loop.

Use Step by step to inspect the explanation, or Whole map to play the flow. Replay starts it again. The diagram shrinks to fit a narrow screen.

Source map without coordinates · Authoring notes