Add lcm() to lib.
263, 306, 389.