Find the prime factors of any number and generate a detailed factor tree. Calculate prime decomposition with step-by-step solutions and mathematical explanations.
Prime factorization is the process of breaking down a composite number into its prime number components. Every integer greater than 1 either is prime itself or can be represented as a unique product of prime numbers, according to the Fundamental Theorem of Arithmetic.
Prime numbers are natural numbers greater than 1 that have no positive divisors other than 1 and themselves. Examples include 2, 3, 5, 7, 11, 13, 17, 19, 23, and so on. Understanding prime factorization is essential for many mathematical concepts including finding greatest common divisors, least common multiples, and simplifying fractions.
Examples: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29...
Examples: 4, 6, 8, 9, 10, 12, 14, 15, 16, 18...
Method | Description | Best For | Example |
---|---|---|---|
Trial Division | Divide by smallest primes systematically | Small to medium numbers | 60 ÷ 2 = 30, 30 ÷ 2 = 15, 15 ÷ 3 = 5 |
Factor Tree | Break number into factor pairs repeatedly | Visual learners | 60 = 6 × 10, then factor 6 and 10 |
Prime Decomposition | Systematic division by primes in order | Large numbers | Start with 2, then 3, 5, 7, 11... |
Sieve Methods | Advanced algorithms for very large numbers | Computer calculations | Quadratic sieve, number field sieve |
Number | Prime Factorization | Exponential Form | Factor Count |
---|---|---|---|
12 | 2 × 2 × 3 | 2² × 3 | 6 factors |
18 | 2 × 3 × 3 | 2 × 3² | 6 factors |
24 | 2 × 2 × 2 × 3 | 2³ × 3 | 8 factors |
30 | 2 × 3 × 5 | 2 × 3 × 5 | 8 factors |
36 | 2 × 2 × 3 × 3 | 2² × 3² | 9 factors |
48 | 2 × 2 × 2 × 2 × 3 | 2⁴ × 3 | 10 factors |
60 | 2 × 2 × 3 × 5 | 2² × 3 × 5 | 12 factors |
72 | 2 × 2 × 2 × 3 × 3 | 2³ × 3² | 12 factors |
Example: GCD(12, 18) = 2¹ × 3¹ = 6
Example: LCM(12, 18) = 2² × 3² = 36
Case | Description | Example |
---|---|---|
Prime Numbers | Cannot be factored further | 7 = 7 (prime) |
Perfect Squares | All prime factors have even exponents | 36 = 2² × 3² |
Perfect Cubes | All prime factors have exponents divisible by 3 | 27 = 3³ |
Powers of Primes | Only one unique prime factor | 32 = 2⁵ |
Method 1 - Systematic Division: Always start with the smallest prime and work your way up.
Method 2 - Factor Pairs: Find any two factors, then continue factoring each branch.
Method 3 - Mixed Approach: Combine both methods for efficiency and verification.
Small Numbers (< 10⁶): Trial division is efficient and straightforward.
Medium Numbers (10⁶ - 10¹²): Pollard's rho algorithm and similar methods are preferred.
Large Numbers (> 10¹²): Advanced algorithms like quadratic sieve or general number field sieve.
Cryptographic Numbers: Factoring very large numbers (hundreds of digits) is computationally infeasible with current technology, which forms the basis of RSA encryption.
Multiplication Check: Multiply all prime factors to verify you get the original number.
Divisibility Check: Ensure each factor divides the original number evenly.
Prime Check: Verify that all factors in your final answer are indeed prime numbers.