Changed lcm to throw ArithmeticException (instead of returning bogus value) if the result is too large to store as an integer. PR # 35431 Submitted by: Jörg Weimar