Prime Factorization Method Calculator
Factor multiple integers at once, compare prime exponents, and find the GCD and LCM from the minimum and maximum powers.
Prime factorization method for several numbers
English search intent for this page is less about the word canonical and more about using prime factorization to find GCD, LCM, or a common denominator. The table view keeps every prime exponent visible across all inputs.
Each positive integer greater than 1 has a unique prime factorization.
- Enter two or more natural numbers.
- Read each number's prime factorization.
- Use the minimum exponent in each prime column for the GCD.
- Use the maximum exponent in each prime column for the LCM.
GCD and LCM from prime powers
| Input | Prime factorization |
|---|---|
| 12 | x 3 |
| 18 | 2 x |
| 30 | 2 x 3 x 5 |
For the GCD, use only primes shared by every input and take the minimum exponent.
For the LCM, include every prime that appears and take the maximum exponent.
Frequently Asked Questions
Sources and References
- LCM & GCD Calculator (Multiple Numbers)Solverly
- LCM Calculator - Least Common MultipleCalculatorSoup
- Prime FactorizationWolfram MathWorld
- Fundamental theorem of arithmeticWikipedia
Calculations are based on the listed reference sources. Links open in a new tab.
Related Tools
Break an integer into prime factors, see repeated factors, canonical exponent form, trial-division steps, and the total number of positive factors.
Calculate the greatest common divisor, also called GCF or HCF, for two or more positive integers with Euclidean algorithm steps and Bezout coefficients for pairs.
Find the least common multiple for two or more positive integers with pairwise GCD steps and prime factorization.
Find the greatest common divisor and least common multiple for two to six nonzero integers, with Euclidean algorithm steps and prime factorization.
Find all common factors for two or more positive integers, including the GCF, each number's factors, and relatively-prime checks.