GCD and LCM Calculator

Enter up to 100 signed integers, each with at most 30 digits. Signs are ignored in GCD and LCM. If any value is zero, the LCM is zero.

Results

Enter your values and select Calculate.

lcm⁡(a,b)=∣ab∣gcd⁡(a,b)\operatorname{lcm}(a,b)=\frac{|ab|}{\gcd(a,b)}

How it works

Enter up to 100 signed integers, each with at most 30 digits. Signs are ignored in GCD and LCM. If any value is zero, the LCM is zero.

lcm⁡(a,b)=∣ab∣gcd⁡(a,b)\operatorname{lcm}(a,b)=\frac{|ab|}{\gcd(a,b)}