Skip to content
Advertisement
Hosinger Special Offer

Prime Factorization Calculator

Prime Factorization Calculator from Gizcalc helps you estimate results quickly within the Math & Statistics category.

  • Instant results
  • Charts & tables
  • Save & compare
  • Private – runs in your browser
Prime Factorisation —

Sample inputs are pre-filled so you can see a result quickly. Results are estimates only and may not be accurate because prices, interest rates, taxes, fees, fuel costs, tariffs, market returns, medical costs, and local rules can change. Please verify current values before making financial, tax, legal, medical, or business decisions.

Formula used

n = p₁^a₁ × p₂^a₂ × … × pₖ^aₖ

  • pᵢ = the distinct prime factors
  • aᵢ = how many times each prime divides n
  • Number of divisors = (a₁ + 1) × (a₂ + 1) × … × (aₖ + 1)

About the Prime Factorization Calculator

What is the Prime Factorization Calculator?

Every whole number greater than 1 is either a prime (divisible only by 1 and itself) or can be written as a product of primes in exactly one way — the Fundamental Theorem of Arithmetic. That product is its prime factorisation, for example 360 = 2³ × 3² × 5.

The calculator divides out 2 and then each odd number up to the square root of what remains (trial division), collecting every prime factor with its power. It also reports whether the number itself is prime, how many distinct primes it contains and its total number of divisors.

How to use the Prime Factorization Calculator

  1. Whole Number (2 to 10¹²) — a whole number from 2 up to 1,000,000,000,000. (sample: 360)
  2. Press Factorise (results also refresh as you type). The result card shows the Prime Factorisation, along with Is it prime?, Distinct prime factors and Total number of divisors.

Formula used

n = p₁^a₁ × p₂^a₂ × … × pₖ^aₖ

  • pᵢ = the distinct prime factors
  • aᵢ = how many times each prime divides n
  • Number of divisors = (a₁ + 1) × (a₂ + 1) × … × (aₖ + 1)

Only divisors up to √n need to be tested: if n has no factor up to its square root, it must be prime.

Worked example

These are the sample values already filled in the calculator above, and the result it returns for them:

InputSample value
Whole Number (2 to 10¹²)360
ResultValue
Prime Factorisation2³ × 3² × 5
Is it prime?No, composite
Distinct prime factors3
Total number of divisors24

Tips for using the Prime Factorization Calculator

  • Prime factorisation makes HCF and LCM easy: take the lowest powers of shared primes for the HCF and the highest powers of all primes for the LCM.
  • A number is a perfect square exactly when every exponent in its factorisation is even, and a perfect cube when every exponent is a multiple of 3.
  • 1 is neither prime nor composite, so it has no prime factorisation.

Frequently asked questions

360 = 2³ × 3² × 5. It has (3 + 1) × (2 + 1) × (1 + 1) = 24 divisors.

Check whether any prime up to its square root divides it. For 97, test 2, 3, 5 and 7 (since √97 ≈ 9.8); none divide it, so 97 is prime.

If 1 were prime, factorisations would not be unique (6 = 2 × 3 = 1 × 2 × 3 = 1 × 1 × 2 × 3 …). Excluding 1 keeps every number's prime factorisation unique.

Add 1 to each exponent in the prime factorisation and multiply. For 72 = 2³ × 3², the count is (3 + 1)(2 + 1) = 12 divisors.