Algorithm. Recursive Euclidean Algorithm [00K4]

The first implementation of the Euclidean Algorithm is recursive:

\mathsf {GCDR}(a,b) =
\mathsf {if} b = 0
\mathsf {then} a
\mathsf {else} \mathsf {GCDR}(b, a \bmod b)