calculatorkong

Prime Factorization Calculator

Try:

Prime factorization

Number of divisors

Sum of prime factors

Fundamental theorem of arithmetic
every integer > 1 = a unique product of primes · divisor count = Π(exponent + 1)

Primes are the atoms of arithmetic, and factorization is the spectroscopy: 360 = 2³ × 3² × 5, uniquely, always. This calculator decomposes any number up to 10¹⁵, lists its factor pairs, and rules on primality.

The algorithm: patient division

Divide by 2 as many times as possible, then 3, then upward — any factor found is automatically prime, because its smaller factors were already stripped out. The search stops at √n: a number with no prime factor up to its square root is prime. That's why 97 needs only four checks (2, 3, 5, 7) to be certified.

What the exponents buy you

The compact form powers instant answers. Divisor count is Π(exponentᵢ + 1): 360 = 2³·3²·5¹ has 4×3×2 = 24 divisors — no listing required. Highest powers and lowest powers of shared primes give LCM and GCF respectively, the machinery behind the GCF & LCM calculator.

Factor pairs: the rectangle view

Every divisor d pairs with n/d — 36 gives 1×36, 2×18, 3×12, 4×9, 6×6. Geometrically these are the whole-number rectangles with area n, and the middle "square" pair (6×6) appears exactly when n is a perfect square — which is also why perfect squares have an odd divisor count.

Why the 10¹⁵ cap is honest

Trial division costs about √n steps — fine at 10¹⁵ (~30 million checks, milliseconds), hopeless at cryptographic sizes. That hardness isn't a bug of mathematics; it's the foundation: RSA encryption trusts that multiplying two 300-digit primes is easy but un-multiplying them is not. Related integer tools: number base converter and square root calculator.

Exact BigInt arithmetic; factor pairs listed up to 1,000,000.

Frequently Asked Questions

What is prime factorization? +

Writing a number as a product of primes: 360 = 2³ × 3² × 5. The fundamental theorem of arithmetic guarantees every integer above 1 has exactly one such decomposition.

How do I find the prime factors of a number? +

Divide by the smallest prime that fits, repeat on the quotient: 84 ÷ 2 = 42, ÷ 2 = 21, ÷ 3 = 7, and 7 is prime — so 84 = 2² × 3 × 7.

How do I know if a number is prime? +

Test divisibility by every prime up to its square root. 97: check 2, 3, 5, 7 (7² = 49 < 97 < 121 = 11²) — none divide it, so 97 is prime.

What are factor pairs? +

Two numbers that multiply to the target: 36 has pairs 1×36, 2×18, 3×12, 4×9, 6×6. Perfect squares have a middle pair with equal halves.

Is 1 a prime number? +

No — a prime has exactly two distinct divisors, 1 and itself; 1 has only one. Excluding it keeps prime factorizations unique.

Why is factoring big numbers hard? +

Trial division scales with the square root, but for hundreds-of-digits numbers, no efficient classical algorithm is known — the asymmetry RSA encryption is built on.

Powered by Calculator Kong ↗

Related Calculators