Prime Factorization Calculator
Break any whole number down into its prime factors, and see whether it's prime and how many divisors it has.
- Prime factorization
- 2^2 × 3 × 5
- Is prime?
- No
- Number of positive divisors
- 12
How it works
This uses trial division: starting at 2, it repeatedly checks whether the smallest not-yet-tried number divides evenly into whatever's left, dividing it out (and counting how many times) whenever it does, up to the square root of what remains. Anything still left over once no divisor up to that square root works is itself a final prime factor, since a composite number always has a prime factor no larger than its own square root.
The number of positive divisors follows directly from the factorization: if n = p₁^a × p₂^b × ..., it has (a+1)(b+1)... divisors, since each divisor is formed by independently choosing a power from 0 up to each prime's own exponent.
A number is prime exactly when this process finds no factor at all before reaching its square root — the whole number itself is the only prime factor, to the first power.
FAQ
Why does the divisor count formula add 1 to each exponent?
Each prime factor pᵢ with exponent aᵢ can appear in a divisor raised to any power from 0 to aᵢ — that's aᵢ+1 choices — and every combination of those independent choices across all prime factors produces one distinct divisor, so the total divisor count is the product of (exponent + 1) across every prime factor.
Is 1 considered prime?
No — 1 has no prime factors at all (it's the empty product), so it's conventionally excluded from both 'prime' and 'composite' and isn't accepted as input here. The number 2 is the smallest prime.
Related calculators
- Percentage Calculator
- Quadratic Equation Solver
- GCD & LCM Calculator
- Circle Area & Circumference Calculator
- Right Triangle Calculator (Pythagorean Theorem)
- Ratio Simplifier
- Exponent & Root Calculator
- Oblique Triangle Solver (Law of Cosines)
- Distance, Midpoint & Slope Calculator
- Permutations & Combinations Calculator (nPr, nCr)
- Arithmetic & Geometric Sequence Calculator
- Regular Polygon Calculator
- Z-Score & Percentile Calculator
- Cubic Equation Solver
- System of Linear Equations Solver (2 Equations)
- Half-Life Decay Calculator
- Vector Calculator (Dot Product, Cross Product, Angle)
- Ohm's Law Calculator
- Projectile Motion Calculator
- Matrix Determinant & Inverse Calculator (2x2 / 3x3)
- Ideal Gas Law Calculator (PV = nRT)
- Snell's Law Calculator (Refraction Angle)
- Wire Resistance Calculator
- Clock Angle Calculator
- Pythagorean Means Calculator (AM, GM, HM)
- Number Base Converter (Decimal to Binary, Octal, Hex)
- Dice Probability Calculator
- Pythagorean Triple Generator
- Binomial Probability Calculator
- Torque Calculator
- Law of Sines Triangle Solver
- Modular Exponentiation Calculator
- Simple Pendulum Period Calculator
- Kinetic Energy Calculator
- Complex Number Calculator
- Circular Sector & Arc Length Calculator
- System of 3 Linear Equations Solver
- Reynolds Number Calculator
- Coulomb's Law Calculator
- Speed of Sound in Air Calculator
- Thin Lens Equation Calculator
- Centripetal Force Calculator
- Resistors in Series and Parallel Calculator
- RC Circuit Time Constant Calculator
- Escape Velocity Calculator
- Doppler Effect Calculator
- Birthday Paradox Calculator
- Ellipse Area, Circumference & Eccentricity Calculator
- Hyperbola Calculator
- Hooke's Law Spring Calculator
- Molarity (Molar Concentration) Calculator
- Momentum & Impulse Calculator
- Kepler's Third Law Orbital Period Calculator
- Triangle Area from Coordinates Calculator
- Beer-Lambert Law Absorbance Calculator
- LC Circuit Resonant Frequency Calculator