Get least common multiple
a - First number b - Second number Returns LCM of the two numbers
a
b
static int lcm(int a, int b) { return (a * b) ~/ gcd(a, b); }