Prime Factorization Method Calculator

    Factor multiple integers at once, compare prime exponents, and find the GCD and LCM from the minimum and maximum powers.

    Use spaces, commas, semicolons, or line breaks. Example: 12 18 30 gives GCD 6 and LCM 180.

    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.

    1. Enter two or more natural numbers.
    2. Read each number's prime factorization.
    3. Use the minimum exponent in each prime column for the GCD.
    4. Use the maximum exponent in each prime column for the LCM.

    GCD and LCM from prime powers

    InputPrime factorization
    12x 3
    182 x
    302 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.

    For a pure GCD problem with large numbers, the Euclidean algorithm is usually faster. This page is built for explainable prime-factorization work.

    Frequently Asked Questions

    Sources and References

    Calculations are based on the listed reference sources. Links open in a new tab.

    Updated:

    Related Tools