Prime Factorization Calculator

Decompose a positive integer into prime factors with repeated factors included.

Inputs

Result

Formula and assumptions

Divide repeatedly by each possible divisor up to the square root of the remaining value. A remaining value above one is prime.

Worked example

Integer to decompose = 84. Result = 2 × 2 × 3 × 7.

Related tool Greatest Common Divisor (GCD) Calculator.

What assumptions affect this result?

Accepts integers from 2 through one billion. For a prime input, the result contains the input alone.