GCD (greatest common divisor)
โ
LCM (least common multiple)
โ
Numbers used
Negatives and zeros are handled via their absolute values.
Euclidean algorithm โ running GCD
Prime factorizations
| Number | Prime factorization |
|---|
GCD = product of shared prime powers (lowest exponent)
LCM = product of all primes at highest exponent
Identity check (for exactly two numbers)
Enter two numbers to see GCD ร LCM = |a ร b|.