Logo

Programming-Idioms

History of Idiom 75 > diff from v12 to v13

Edit summary for version 13 by :

Version 12

2015-09-05, 14:57:29

Version 13

2015-09-05, 16:13:58

Idiom #75 Compute LCM

Compute the least common multiple x of big integers a and b. Use an integer type able to handle huge numbers.

Idiom #75 Compute LCM

Compute the least common multiple x of big integers a and b. Use an integer type able to handle huge numbers.

Code
x = lcm a b
Doc URL
http://hackage.haskell.org/package/base/docs/Prelude.html#v:lcm