lcm

calculate least common multiplier for given collection of integers


Parameters

lcm numbers :block

Returns

  • :integer

Examples

copy
print lcm [48 60 120] ; 240

Related