Added in 4.3
$gcd(N,...)
Returns the greatest common divisor for the specified list of numbers.
See also $lcm.
Parameters
Example
//echo -ag The greatest common divisor for 24 and 54 is $gcd(24, 54)