Prime Factorization Calculator

Break any whole number into prime factors, check if it is prime, and see all of its divisors.

FreeNo sign-upPrivate — runs in your browser
Prime factorization—
Is it prime?—
Number of divisors—
Sum of divisors—
Previous prime—
Next prime—

Steps

All divisors

How to use the Prime Factorization Calculator

  1. Enter a numberType any whole number up to 18 digits. Commas and spaces are ignored.
  2. Read the factorizationSee the number as a product of primes, with powers written as exponents, and the division steps.
  3. Explore its divisorsSee whether it is prime, all of its divisors, their count and sum, and the nearest primes below and above.

Example

360 = 2³ × 3² × 5. It has 24 divisors, which add up to 1,170. The nearest primes are 359 and 367.

The 18-digit number 999,999,999,999,999,989 is prime, and 1,000,000,007 × 998,244,353 is factored instantly.

Frequently asked questions

What is prime factorization?

Writing a number as a product of prime numbers, the numbers divisible only by 1 and themselves. Every whole number above 1 has exactly one prime factorization, for example 84 = 2² × 3 × 7.

How are the divisors counted?

Add 1 to each exponent and multiply. For 360 = 2³ × 3² × 5¹ that is (3+1) × (2+1) × (1+1) = 24 divisors.

How does it handle big numbers?

It uses the Miller–Rabin test, which is exact for numbers of this size, to check for primes, and Pollard’s rho method to find large factors quickly. Everything runs in your browser.

Is 1 a prime number?

No. A prime must have exactly two different divisors, 1 and itself. The number 1 has only one divisor, so it is neither prime nor composite.

Popular posts from this blog

Character Counter

Speech to Text Online

Keyboard Tester