Prime Factorization Calculator & Tree
Decompose integers into prime building blocks. Features canonical form output, factor tree visualization, and a large number divisor finder.
About
Every integer greater than 1 is either a prime number itself or can be represented as the product of prime numbers. This is known as the Fundamental Theorem of Arithmetic. Prime factorization breaks a composite number down into its atomic elements (e.g., 12 becomes 2 × 2 × 3).
This tool is designed for students and educators. It not only provides the standard Canonical Form (using exponents like 23) but also generates a textual "Step-by-Step Factor Tree" to visualize the division process. It handles large integers efficiently and checks for primality instantly.
Formulas
To find the prime factorization of n, we repeatedly divide by the smallest prime factor p:
We check divisibility starting from 2, then 3, then 5, and so on up to √n.
Reference Data
| Number | Prime Factors | Canonical Form | Is Prime? |
|---|---|---|---|
| 12 | 2, 2, 3 | 22 × 3 | No |
| 31 | 31 | 31 | Yes |
| 100 | 2, 2, 5, 5 | 22 × 52 | No |
| 1024 | 2 (10 times) | 210 | No |
| 5040 | 2, 2, 2, 2, 3, 3, 5, 7 | 24 × 32 × 5 × 7 | No |