Prime Factorization Calculator
n = p₁^a₁ × p₂^a₂ × … Trial division to find all prime factors with multiplicity.
Result
General calculation reads
Amazon affiliateAs an Amazon Associate we may earn from qualifying purchases. This does not add cost for you.
How to use this calculator
- Enter positive integer.
- Read prime factorization + divisor count.
About this calculator
Every integer >1 has a unique prime factorization (Fundamental Theorem of Arithmetic). 360 = 2³ × 3² × 5. The number of divisors is the product of (exponent+1) terms: 360 has (3+1)(2+1)(1+1) = 24 divisors. Trial division is fastest for n < 10^12; beyond that, Pollard rho or quadratic sieve. Cryptographic security (RSA) relies on factoring being hard for products of two large primes.
Frequently asked
Why is factorization unique?+
How many divisors does n have?+
How big can I factor here?+
Why trial division?+
GCD/LCM use this?+
Related calculators
More tools you might like
Hand-picked tools that pair well with this one — same audience, same intent.
Is n prime? Trial division up to √n; identifies smallest divisor and nearest primes if composite.
Euclidean algorithm: gcd(a,b) = gcd(b, a mod b). Supports 2-6 integers.
lcm(a,b) = |a × b| / gcd(a,b). Smallest number that both a and b divide evenly.
n! = 1 × 2 × … × n. Computes exactly up to 21! (number limit); approximate via Stirling for larger.
Convert decimal ↔ scientific notation. Standard form a × 10^b with 1 ≤ |a| < 10.
Find an affordable monthly rent budget based on your income — using the 30% rule, the 40× annual income rule, and a debt-to-income-aware recommendation that factors in your existing debt payments.