Find the smallest common multiple between certain numbers

$$ lcm(a,b) * gcd(a,b) = |a*b|$$

This means, that $$ lcm(a,b) = a*b/gcd(a,b)$$

Also, $$lcm(a,b,c) = lcm(a,lcm(b,c))$$

Input as many numbers as you want seperated by ","

Solution: