Prime Factorization Calculator

Break any whole number into its prime factors and get its divisor count, divisor sum and Euler's totient.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Prime Factorization Calculator and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Prime Factorization Calculator does

    Break any whole number into its prime factors and get its divisor count, divisor sum and Euler's totient.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Enter a whole number and the calculator writes it as a product of primes, such as 360360 = 2³ × 3² × 5 × 7 × 11 × 13. It also gives the number of prime factors, the number of divisors, the sum of the divisors and Euler's totient φ(n).

How it works

The number is divided by 2, 3, 5 and so on, always by the smallest factor that still divides it. The exponents of the primes give the divisor count: (a + 1)(b + 1)… for n = p^a q^b…

Other values

The divisor sum σ(n) is the product of (p^(a+1) − 1) ÷ (p − 1) over each prime. Euler's totient φ(n) counts the numbers up to n that share no factor with n, and equals n × ∏(1 − 1/p).

Limits

The number must be between 2 and 10^13, which trial division factors instantly.

Worked example

360360 = 2³ × 3² × 5 × 7 × 11 × 13. It has 9 prime factors counted with repeats, 192 divisors, a divisor sum of 1,572,480 and φ = 69,120.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

What is a prime factorization?

Writing a number as a product of prime numbers. It is unique for every whole number above 1 (the fundamental theorem of arithmetic).

How many divisors does a number have?

Add 1 to each prime exponent and multiply the results.

What if I enter a prime?

The result is the number itself, with 2 divisors.

How large a number can I use?

From 2 up to 10^13.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages