Skip to content
NexUnit home
EnglishEspañol

Prime Number & Prime Factorization Calculator

Check whether a number is prime and break it into its prime factors — exact for very large numbers.

Is it prime?

No — 360 is composite

Prime factorization
2³ × 3² × 5
Distinct prime factors
2, 3, 5

Show the work

  1. Divide out 2, 3 times

    360 ÷ 2 to the power of 3 = 45

  2. Divide out 3, 2 times

    45 ÷ 3 to the power of 2 = 5

  3. Divide out 5

    5 ÷ 5 = 1

  4. Prime factorization

    360 = 2 to the power of 3 × 3 to the power of 2 × 5

  5. So it is not prime

    No — 360 is composite

How it works

Primality: deterministic Miller–Rabin with the first 12 prime bases (exact below 3.3 × 10²⁴); factoring: trial division plus Pollard's rho

Questions

How does the prime number & prime factorization calculator work?
Primality: deterministic Miller–Rabin with the first 12 prime bases (exact below 3.3 × 10²⁴); factoring: trial division plus Pollard's rho.
What do I need to enter?
Whole number. Optional fields can be left blank.

Want this on your site? Embed the prime number & prime factorization calculator.