M/N M
N
[
M;N => greatest divisor of both M and N
]
=
A
(you can use "A" as one or both inputs)
examples