klyn.math.Math.gcd
method
public static gcd<INT_TYPE extends AbstractInt>(left as INT_TYPE, right as INT_TYPE) as INT_TYPE:
Description

Computes the greatest common divisor of one or more integers.

The result is always non-negative.

print(Math.gcd(42, 30))
print(Math.gcd(42, 30, 18))