Prime Factorization Calculator and Prime Checker
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free prime factorization calculator. Break any whole number up to 9 quadrillion into prime factors with exponents, check if it's prime, and list its divisors.
- Prime factorization
- 0
- Prime?
- 0
- Number of divisors
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the prime factorization calculator
- Type a whole number of 2 or more, such as 360.
- Read the result. The prime factorization calculator shows the number as a product of primes with exponents (360 = 2³ × 3² × 5), says whether it's prime, counts its divisors, and lists every divisor.
It works for any whole number up to 9,007,199,254,740,991, which is about 9 quadrillion and the largest whole number a browser can store exactly. Spaces and commas in the number are ignored, so 1,000,000 works.
What prime factorization is
A prime number is a whole number greater than 1 that can only be divided exactly by 1 and itself: 2, 3, 5, 7, 11, 13, 17 and so on. Every other whole number greater than 1 is composite, and can be built by multiplying primes together.
Prime factorization means writing a number as that product of primes. For 360:
360 = 2 × 2 × 2 × 3 × 3 × 5 = 2³ × 3² × 5
The fundamental theorem of arithmetic says this breakdown is unique: apart from the order, every number has exactly one prime factorization. That's why primes are often called the building blocks of numbers.
How to find prime factors by hand
The simplest method is repeated division, the same method the prime factorization calculator uses (trial division):
- Divide by 2 as many times as you can. 360 → 180 → 90 → 45. That's three 2s.
- Move to 3. 45 → 15 → 5. That's two 3s.
- Move to the next prime, 5. 5 → 1. One 5.
- When you reach 1, you're done: 2³ × 3² × 5.
You only need to test primes up to the square root of what's left. If nothing divides it by then, what remains is prime. This is why the prime factorization calculator can confirm that a 16-digit number is prime in a moment.
Factor trees are the same idea drawn as a diagram: split 360 into 36 × 10, then 36 into 6 × 6 and 10 into 2 × 5, and keep splitting until every branch ends in a prime.
Checking if a number is prime
A number is prime when its factorization is just the number itself. The prime factorization calculator says "Yes, it's prime" in that case, and shows exactly 2 divisors (1 and the number).
Some quick tests you can do in your head:
- Divisible by 2: the last digit is even.
- By 3: the digits add up to a multiple of 3 (for 2,025: 2 + 0 + 2 + 5 = 9, so yes).
- By 5: it ends in 0 or 5.
- By 11: the alternating sum of digits (first − second + third…) is a multiple of 11. For 1,001: 1 − 0 + 0 − 1 = 0, so yes.
1 is not prime (it has only one divisor), and 2 is the only even prime.
Counting divisors
The factorization tells you how many divisors a number has, without listing them. Add 1 to each exponent and multiply:
For 360 = 2³ × 3² × 5¹: (3 + 1) × (2 + 1) × (1 + 1) = 4 × 3 × 2 = 24 divisors.
The prime factorization calculator shows the count, and lists all the divisors in order when there are 2,000 or fewer: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360. That's why 360 was chosen for degrees in a circle: it divides evenly in so many ways.
Uses of prime factorization
Simplifying fractions. Cancel the shared primes on top and bottom. 84/126 = (2² × 3 × 7)/(2 × 3² × 7) = 2/3.
LCM and GCF. The least common multiple takes the highest power of each prime; the greatest common factor takes the lowest shared power. The LCM calculator does this directly.
Square roots. A number is a perfect square when every exponent in its factorization is even. 3,600 = 2⁴ × 3² × 5², so √3,600 = 2² × 3 × 5 = 60.
Dividing things evenly. The divisors list shows every way to split a quantity into equal groups. 360 sweets can go into 24 different group sizes with none left over.
Cryptography. Internet security (RSA encryption) relies on the fact that multiplying two huge primes is easy, but factoring the result back is practically impossible for numbers hundreds of digits long. The numbers here are far smaller, which is why they factor instantly.
Puzzles and number theory. Perfect numbers, amicable numbers and many competition problems start with a factorization.
Some numbers worth knowing
- 1,001 = 7 × 11 × 13. Multiply any three-digit number by 1,001 and you get it written twice: 456 × 1,001 = 456,456.
- 2,026 = 2 × 1,013, while 2,027 is prime.
- 2⁵³ − 1 = 9,007,199,254,740,991 = 6,361 × 69,431 × 20,394,401, the largest number the prime factorization calculator accepts.
- 9,007,199,254,740,881 is the largest prime below that limit. The calculator confirms it in under a second.
Tips
- Read the exponents. 2^3 means 2 × 2 × 2. The big answer shows exponents as superscripts; the copyable field uses ^.
- Check your homework. Multiply the factors back together and you should get the original number.
- Large primes take longest, because every possible factor up to the square root is tried. It's still fast.
- For other bases, like binary, use the number base converter.
Privacy and accuracy
Your number stays in your browser. The prime factorization calculator uses exact trial division by 2, 3 and then every number of the form 6k ± 1 up to the square root, with no shortcuts that can give a wrong answer and no AI, so results are exact and always the same. Students, teachers, puzzle fans and programmers use it free on any device.
Prime numbers to 100
There are 25 primes below 100: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89 and 97. Knowing these makes factorising by hand much faster, because you only ever need to divide by primes.
Prime factorization and perfect powers
The exponents tell you a lot at a glance:
- Perfect square: all exponents even. 144 = 2⁴ × 3².
- Perfect cube: all exponents multiples of 3. 216 = 2³ × 3³.
- Square-free: no exponent above 1. 30 = 2 × 3 × 5.
To find the smallest number to multiply by to make a perfect square, raise each odd exponent by one. For 72 = 2³ × 3², multiply by 2 to get 144 = 12².
Using the prime factorization calculator for homework
Teachers often ask for a factor tree as well as the answer. Use the prime factorization calculator to check the final product of primes, then draw your tree, splitting into any two factors at each step: 360 → 36 × 10 → 6 × 6 × 2 × 5 → 2 × 3 × 2 × 3 × 2 × 5. However you split, the primes at the ends of the branches are always the same, which is a good way to check your tree.
Quick reference
- Prime: exactly two divisors, 1 and itself (2, 3, 5, 7, 11…).
- Composite: more than two divisors (4, 6, 8, 9…).
- Prime factorization: a number written as a product of primes.
- Exponent: how many times a prime appears; 2³ means 2 × 2 × 2.
- Divisor count: multiply (exponent + 1) for every prime.
- Coprime: two numbers with no prime factor in common.
Every result in the prime factorization calculator uses these terms, so the answer reads the same way your textbook does. For checking work quickly, try the calculator on your own answer: multiply your primes together and compare with the original number.
A worked example
A maths teacher wants to show why the year 2026 is "nearly prime". She types 2026 into the prime factorization calculator: 2026 = 2 × 1013, with 4 divisors (1, 2, 1013 and 2026). Then she tries 2027: the calculator says it's prime.
For a harder example she enters 1001, which turns out to be 7 × 11 × 13, and shows the class the trick of multiplying three-digit numbers by 1,001. Finally she enters 360 to show why it has 24 divisors, and asks the class to find all of them before revealing the list.
Need more customers from Google?
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.
Frequently asked questions
What is the prime factorization of a number?
It's the number written as a product of prime numbers. 60 = 2² × 3 × 5. Every number above 1 has exactly one.
How do I know if a number is prime?
Try dividing it by every prime up to its square root. If none divides it, it's prime. The prime factorization calculator does this instantly.
Is 1 a prime number?
No. A prime has exactly two divisors, and 1 has only one.
How many divisors does a number have?
Add 1 to each exponent in its prime factorization and multiply. 72 = 2³ × 3², so it has 4 × 3 = 12 divisors.
What's the biggest number I can enter?
9,007,199,254,740,991 (2⁵³ − 1), the largest whole number a browser handles exactly.
Is this prime factorization calculator free?
Yes. It's free and needs no sign-up.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.