Prime factorization calculator
Break a whole number into prime factors, check whether it is prime and list all of its divisors.
Input
Tip: press Ctrl + Enter to run
Saved settings
About this tool
Every whole number above 1 is either prime or a unique product of primes. This calculator finds that product, says whether the number is prime, counts its divisors, adds them up and lists them all. It is useful for simplifying fractions and radicals, checking divisibility, and exploring number theory homework.
How to use it
- Enter a whole number from 2 to 10,000,000,000,000.
- Run the factorization.
- Read the factorization in exponent form and the prime check.
- Use the divisor list for problems about factors and multiples.
How the calculation works
Trial division by 2, 3 and then candidate primes up to √n. The number of divisors is the product of (exponent + 1) for each prime; the sum of divisors uses the standard divisor-function formula.
trial division by primes up to √nWorked example
The number 1001 factors as 7 × 11 × 13. It has 8 divisors (1, 7, 11, 13, 77, 91, 143 and 1001) whose sum is 1,344. Entering 97 shows that it is prime, with only the divisors 1 and 97.
Sample input and result
Whole number (2 to 10,000,000,000,000): 360 → Prime factorization: 2³ × 3² × 5 → Prime number: No → Number of divisors: 24 → Sum of divisors: 1,170
Limitations
- Numbers from 2 to 10,000,000,000,000.
- Whole numbers only.
- Divisor lists can be long for highly composite numbers.
Last updated:
Frequently asked questions
Is 1 a prime number?
No. Primes have exactly two divisors, 1 and themselves; 1 has only one.
Why is there an upper limit?
Trial division slows down for very large numbers; 10 trillion keeps results fast in a browser.
How can I test divisibility quickly by hand?
A number is divisible by 3 if its digits add up to a multiple of 3, by 9 if they add up to a multiple of 9, and by 11 if the alternating sum of its digits is a multiple of 11. 1001 passes the 11 test: 1 − 0 + 0 − 1 = 0.
How is this used to simplify square roots?
Pair up prime factors: √360 = √(2³ × 3² × 5) = 6√10.
Troubleshooting
It rejects my number.
It is below 2, above the limit or not a whole number.
It takes a moment for large primes.
Proving a large number prime means testing many divisors; wait a few seconds.
I need the GCD of two numbers.
Use the GCD and LCM calculator.
Privacy & Free to use
Are my inputs stored?
Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.
Is this tool free?
Yes. No signup or payment is required.
See also
Useful next steps
Scientific calculator
Evaluate arithmetic, powers and trigonometric functions in radians without eval.
Maths & educationFraction calculator
Add, subtract, multiply or divide rational numbers exactly.
Maths & educationEquation solver
Solve real linear and quadratic equations ax² + bx + c = 0.
Maths & education