# Prime Factorization Calculator

URL: https://speedycalculator.com/calculators/math/prime-factorization/
Last updated: 2026-11-08

> The prime factorization calculator breaks any whole number (even one with 20+ digits) into its prime factors, in exponent and list form, with a factor tree, the number of divisors and their sum.

## Inputs

- Enter a number

## Results

- Prime factorisation
- As a product of primes
- Number of divisors
- Sum of divisors
- Factor tree (steps)
- Is it prime?

## Formula

```
n = p₁^e₁ × p₂^e₂ × … × pₖ^eₖ
Number of divisors = (e₁ + 1)(e₂ + 1)…(eₖ + 1)
```

## Explanation

Every whole number greater than 1 is a product of primes in exactly one way (the fundamental theorem of arithmetic). Prime factorisations give GCFs, LCMs, simplified radicals and fractions, and the number of divisors.

### How to use the Prime Factorization Calculator

- **Enter a number**

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

### How it works

Small primes are removed by trial division; larger factors are found with the Pollard rho method and confirmed with the Miller–Rabin primality test, all with exact BigInt arithmetic in your browser.

## Worked example

Inputs: Enter a number: 360.

Results: **Prime factorisation = 2³ × 3² × 5**; As a product of primes = 2 × 2 × 2 × 3 × 3 × 5; Number of divisors = 24; Sum of divisors = 1170; Factor tree (steps) = 360 = 2 × 180
180 = 2 × 90
90 = 2 × 45
45 = 3 × 15
15 = 3 × 5
5 = 5 × 1; Is it prime? = No – it is composite.

## Key terms

- **Prime factor**: A prime number that divides n.
- **Fundamental theorem of arithmetic**: Every integer > 1 has a unique prime factorisation.

## FAQ

**What is the prime factorisation of 360?**
2³ × 3² × 5.

**Is 1 a prime?**
No, 1 has no prime factors.

**How many divisors does 360 have?**
(3 + 1)(2 + 1)(1 + 1) = 24.

**Why is factorisation hard for huge numbers?**
No fast general algorithm is known, which is what keeps RSA secure.


## Sources

- [OpenStax: Contemporary Mathematics](https://openstax.org/details/books/contemporary-mathematics)
- [Wolfram MathWorld: Prime factorization](https://mathworld.wolfram.com/PrimeFactorization.html)
