Home ↓
CalculatorsVerified

Math & Geometry

Prime Factorization Calculator

Check whether a number is prime and break it into prime factors.

Breaking numbers into primes

A prime number is a whole number greater than 1 whose only divisors are 1 and itself: 2, 3, 5, 7, 11, 13… Every whole number above 1 can be written as a product of primes in exactly one way, a fact known as the fundamental theorem of arithmetic. For example, 360 = 2³ × 3² × 5. The calculator finds this factorisation by trial division up to the square root of the number, tells you whether the number is prime and counts its divisors.

The number of divisors follows directly from the exponents: add one to each exponent and multiply, so 360 has (3 + 1)(2 + 1)(1 + 1) = 24 divisors.

Why primes matter

Prime factorisation simplifies fractions, finds greatest common divisors and least common multiples, and underpins modern cryptography: RSA encryption relies on the fact that multiplying two large primes is easy while factorising their product is extremely hard.

Formula & method

Divide by 2, 3, 5, 7… up to √n; whatever remains above 1 is prime

Worked example

Factorise 360

  1. 360 ÷ 2 = 180, ÷ 2 = 90, ÷ 2 = 45 → 2³
  2. 45 ÷ 3 = 15, ÷ 3 = 5 → 3²
  3. 5 is prime

Answer: 360 = 2³ × 3² × 5, with 24 divisors.

Frequently asked questions

Is 1 a prime number?

No. A prime has exactly two divisors, 1 and itself.

Is 2 the only even prime?

Yes. Every other even number is divisible by 2.

How large a number can I factorise?

Numbers up to about 9 quadrillion work quickly unless they have two very large prime factors.

What is a composite number?

A whole number greater than 1 that is not prime, such as 4, 6 or 360.

How do I find all divisors?

Combine the prime factors in every possible way; the calculator gives their count.

Why stop at the square root?

If a number has a factor larger than its square root, it must also have one smaller than it.

What is the largest known prime?

The record primes are Mersenne primes of the form 2^p − 1 with tens of millions of digits, found by distributed computing projects.