gcd

calculate greatest common divisor for given collection of integers


Parameters

gcd numbers :block

Returns

  • :integer

Examples

copy
print gcd [48 60 120] ; 12

Related