Prime Factorization Calculator
MathFind the prime factorisation of any number instantly. Shows all prime factors with their exponents, factor expression, and divisor count with step-by-step working. Free tool.
Enter any integer from 2 to 10,000,000
Prime Factorisation
360 = 360
Distinct Primes
—
Total Divisors
—
Is Prime?
—
Smallest Factor
—
What is a Prime Factors?
The Prime Factorization Calculator breaks down any positive integer (up to 10,000,000) into its complete prime factorization, displayed in exponential notation such as 2³ × 3² × 5. It also computes the number of distinct prime factors, the total factor count (with multiplicity), the total number of positive divisors, and confirms whether the input itself is a prime number.
Every integer greater than 1 can be written as a unique product of prime numbers — this is the Fundamental Theorem of Arithmetic, one of the cornerstones of number theory. For example, 360 = 2 × 2 × 2 × 3 × 3 × 5, written compactly as 2³ × 3² × 5. This factorization is unique: no other combination of primes multiplies to 360.
Prime factorization is foundational to a wide range of mathematical topics taught in Indian schools and competitive exams: finding HCF and LCM, simplifying fractions, proving irrationality of √2 and √3 (CBSE Class 10), and understanding modular arithmetic. In computer science and cryptography, the computational difficulty of factorizing large numbers is the security basis for RSA encryption used in online banking, HTTPS, and digital signatures.
The GCF & LCM Calculator is a natural companion — it uses prime factorization internally and displays factor chips for both inputs, making it easy to identify common factors and compute GCF and LCM by inspection.
How to use this Prime Factors calculator
Enter the Number — type any positive integer from 2 to 10,000,000 into the input field. The input must be a whole number (no decimals or negative numbers). Large numbers (6–7 digits) are supported and compute in milliseconds.
Read the Prime Factorization — the factor chips display the result in p^e notation. If there is only one chip and the number itself appears (e.g., "7¹"), the input is prime.
Check the "PRIME" badge — if displayed, the input is a prime number and has no prime factors other than itself.
Note the Divisor Count — use this to answer "how many divisors does n have?" type questions. For perfect squares, all exponents are even and the divisor count is always odd.
Use for HCF/LCM — open the GCF & LCM Calculator and enter your two numbers to see their factorizations side by side with the HCF and LCM computed automatically.
Formula & Methodology
Trial Division Algorithm:Divide n by 2 repeatedly to find all factors of 2. Then try all odd numbers d = 3, 5, 7, ... up to √n. For each d that divides n, record d and its count. If the remaining quotient after all trial divisions is > 1, it is itself a prime factor. Divisor Count Formula:If n = p₁^a₁ × p₂^a₂ × ... × pₖ^aₖ, then:Number of divisors = (a₁ + 1)(a₂ + 1) ... (aₖ + 1) Primality test: n is prime if no integer from 2 to ⌊√n⌋ divides n. Worked example — Class 10 CBSE style: Express 3600 as a product of prime factors and find the number of divisors. Step 1 — Divide by 2: 3600 → 1800 → 900 → 450 → 225 (4 factors of 2)Step 2 — Divide by 3: 225 → 75 → 25 (2 factors of 3)Step 3 — Divide by 5: 25 → 5 → 1 (2 factors of 5) Prime factorization: 3600 = 2⁴ × 3² × 5² Verification: 2⁴ = 16; 3² = 9; 5² = 25; 16 × 9 = 144; 144 × 25 = 3600 ✓ Divisor count = (4+1)(2+1)(2+1) = 5 × 3 × 3 = 45 divisors Distinct prime factors: 3 (primes 2, 3, and 5)Total prime factors with multiplicity: 4 + 2 + 2 = 8 Assumption: The calculator uses trial division, which is efficient for numbers up to ~10 million. For larger numbers, trial division slows significantly as the trial limit (√n) grows. Numbers are treated as positive integers — negative inputs, zero, and 1 are not valid for prime factorization.