Prime Factorization Calculator

Find the prime factorization of any integer. Get results with exponents, expanded form, factor tree, and complete breakdown of all prime factors.

Enter an integer (2 to 10 trillion)

Divide by smallest prime (2, 3, 5, 7...) repeatedly until quotient is 1. Prime factorization is unique per Fundamental Theorem of Arithmetic. Every integer > 1 is either prime or product of primes.
360 = 2³ × 3² × 5 = 2 × 2 × 2 × 3 × 3 × 5. Unique primes: 2, 3, 5 (3 primes). Total factors: 6 (counting repetitions). Steps: 360÷2=180, 180÷2=90, 90÷2=45, 45÷3=15, 15÷3=5, 5÷5=1

What is prime factorization and why is it useful?

Prime factorization breaks a number into prime numbers that multiply to give the original. Every integer has unique prime factorization (Fundamental Theorem of Arithmetic). Example: 60 = 2 × 2 × 3 × 5 = 2² × 3 × 5. Uses: Finding GCF/LCM (use common/all prime factors), simplifying fractions (divide by common primes), cryptography (RSA encryption uses very large prime factors), number theory, solving math problems. Prime factorization of 1 = empty (1 has no prime factors). Prime factorization of primes = themselves (7 = 7).

How do you find prime factorization step by step?

Method 1 - Division by primes: Start with smallest prime (2), divide if possible, repeat. Move to next prime (3, 5, 7...) when current does not divide. Stop when quotient is 1. Example: 60 ÷ 2 = 30, 30 ÷ 2 = 15, 15 ÷ 3 = 5, 5 ÷ 5 = 1. Result: 2 × 2 × 3 × 5. Method 2 - Factor tree: Split number into any two factors, repeat until all branches are prime. Either method gives same result (unique factorization). For large numbers: Only test primes up to √n (if n has no factors ≤ √n, it is prime).

What is the difference between factors and prime factors?

Factors: All numbers that divide evenly. Example: Factors of 12 = 1, 2, 3, 4, 6, 12 (6 factors). Prime factors: Only prime numbers that divide evenly. Example: Prime factors of 12 = 2, 3 (2 prime factors). Prime factorization: Prime factors with exponents showing frequency. Example: 12 = 2² × 3 (2 appears twice, 3 once). Uses: Factors for divisibility, GCF/LCM. Prime factors for understanding number structure, cryptography. Every composite number has at least 2 prime factors. Primes have 1 prime factor (themselves).

How is prime factorization used in cryptography?

RSA encryption basis: Multiplication is easy (2 primes → product in milliseconds), Factorization is hard (product → 2 primes can take years for large numbers). RSA: Generate 2 large primes (p, q), multiply to get n = p × q (public key). Breaking RSA requires factoring n (finding p, q). Example: n = 15 (easy to factor: 3 × 5). But n = 2048-bit number (617 digits) ≈ impossible to factor with current computers. Security: Use 2048-bit primes (1024-bit each). Quantum computers threaten this (Shor algorithm can factor efficiently).

What are some special cases in prime factorization?

Number 1: Has no prime factors (not composite, not prime). Prime numbers: Only factor is itself. Example: 17 = 17. Perfect squares: All prime exponents are even. Example: 36 = 2² × 3². Perfect cubes: All exponents divisible by 3. Example: 27 = 3³. Powers of 2: Only prime factor is 2. Example: 64 = 2^6. Highly composite numbers: More divisors than smaller numbers. Example: 12 has 6 divisors. Very large numbers: Factorization becomes computationally hard (basis of cryptography). This calculator handles numbers up to ~10 trillion efficiently.