The least common multiple is the smallest positive number that all the given numbers divide. Take every prime that appears in any of the numbers, each with its largest exponent; for two numbers you can also divide their product by their GCD.
| Step | On | |
|---|---|---|
| 1 | Factor each number into primes. Use prime factorization on each number. | , |
| 2 | List every prime that appears in any of them. A multiple of both numbers must contain all the primes of each. | , , |
| 3 | Take the larger exponent of each prime. The LCM needs as many copies of each prime as the number that has the most of it. | |
| 4 | Multiply, and check with the GCD. For two numbers, . | ; check: |