Worked example: Prime Factorization Calculator
360. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.
View the example inputs
- Positive integer
- 360
| Calculated quantity | Example result |
|---|---|
| Prime factorization | 2^3 × 3^2 × 5 |
| Positive factor count | 24 |
| Distinct factor pairs | 12 |
| Number type | Composite |
Prime Factorization Calculator: follow the primes behind an integer
What is the prime factorization of a number?
Prime factorization rewrites an integer greater than 1 as a product containing only primes. For 252, the result is 2 × 2 × 3 × 3 × 7, or 2² × 3² × 7. Multiplying those entries reconstructs 252.
The Prime Factorization Calculator keeps repeated prime occurrences in the division ledger while collecting them into exponent form in the result. The prime 2 appears twice in this example; the distinct prime bases are only 2, 3 and 7. Those are different counts.
How do I read a factor tree?
A factor tree splits a number into two factors, then continues splitting any composite branch. A leaf is finished only when its value is prime. Different first splits can produce different-looking trees without changing the final prime product.
For 252, a first split could be 2 × 126 or 12 × 21. Either route eventually reaches two 2s, two 3s and one 7. Our compact tree uses successive prime divisions so every displayed branch can be checked against a matching ledger row. Long chains show five splits and explicitly leave the remaining branch unfinished in the preview.
How does repeated prime division work?
Divide by the smallest prime that goes in exactly, then repeat on the quotient. For 252: divide by 2 to get 126, by 2 to get 63, by 3 to get 21, by 3 to get 7, and finally by 7 to reach 1.
The ledger records the dividend, chosen prime and quotient at every step. It is a reproducible explanation of the result, rather than a list of trial divisors that failed. When the remaining quotient is prime, no additional composite split is needed.
What do prime exponents tell me about divisors and squares?
An exponent records how often a prime occurs in the product. In 252 = 2² × 3² × 7¹, choosing exponents independently gives (2 + 1)(2 + 1)(1 + 1) = 18 positive divisors.
A positive integer is a perfect square when all its prime exponents are even. Here the exponent of 7 is odd, so 252 is not a square. Pairing repeated primes is also useful when simplifying a square root, although this page reports the decomposition rather than automatically rewriting radicals.
Why use a Prime Factorization Calculator?
Prime powers help explain fraction reduction, common factors, common multiples and divisibility. To compare two decompositions, shared minimum powers build their GCF; maximum required powers build their LCM.
For example, 72 = 2³ × 3² and 90 = 2 × 3² × 5. Their shared minimum powers give 2 × 3² = 18. Their maximum powers give 2³ × 3² × 5 = 360. The related calculators apply those operations directly to multiple inputs.
Is 1 prime, and how large can the input be?
One is not prime and has no prime-factor list. A prime must exceed 1 and have exactly two positive divisors. For a prime input such as 97, the decomposition is simply 97; the tool identifies it as already prime instead of drawing a composite tree.
The supported range ends at 10¹². This bounded trial-division tool is intended for educational integers, not the factorization of cryptographic keys. Complete division steps, divisor tables and example patterns remain available even when the compact tree shortens its preview.
Formula and calculation method
A factor d divides n exactly: n = d × (n/d), with zero remainder. Only positive factors are listed.
Prime factorization writes n as a product of primes. For n = p₁^a₁ × … × pₖ^aₖ, the positive divisor count is (a₁+1)…(aₖ+1).
Factor pairs are listed once, with the smaller member first. A perfect square has one equal-member pair.
One has exactly one positive factor, 1, and no prime factors. It is neither prime nor composite.
Scope and Limitations
- Positive integers up to 10¹²; exact safe-integer trial division. The compact tree previews the first five divisions when a factorization is long; the complete division ledger and factors remain available.
Reference Sources
Frequently asked questions
Can two different factor trees give different prime factors?
They can split in a different order, but a correct complete factorization has the same prime factors with the same multiplicities.
Why is 1 missing from the prime product?
One is not prime. Multiplying by 1 would not help identify the prime building blocks.
Does 2³ mean three distinct prime factors?
It means three occurrences of the prime 2. It is one distinct prime base.
Is the whole factor tree always visible above the fold?
The compact tree shows up to five splits. A longer chain is identified as a preview, and the complete division ledger remains below.
How can I check the answer?
Multiply each prime raised to its exponent. The product must equal the original integer; each ledger division must also have zero remainder.