Prime Factorization Calculator
Break any number into its prime factors in exponent form
Last updated October 2026
Method: Trial division by the primes up to 100,000, the school method, then a deterministic Miller-Rabin primality test and Pollard's rho method for any larger factor. All arithmetic is exact big-integer arithmetic, and by the Fundamental Theorem of Arithmetic (every integer greater than 1 has a unique prime factorization) the answer is the only correct one.
Included: The prime factorization in exponent form, a step-by-step factor tree (one division per row), the divisor count, the list of factors (the 1,000 smallest when there are more), and a prime/composite verdict, for whole numbers up to 18 digits.
Not included: Decimals, fractions, numbers with more than 18 digits, and factoring of polynomials. Negative numbers are shown as −1 times the factorization of their absolute value; 0 and 1 have no prime factorization.
🔢 Enter a number
✨ Prime factorization of 360
🔷 360 is a composite number. It is built from 3 distinct primes: 360 = 2³ × 3² × 5.
🪜 Factor tree, step by step
Each row splits off the smallest prime factor, like a factor tree that always branches off a prime. The last quotient is 1.
| Step | Number | = prime × quotient |
|---|---|---|
| 1 | 360 | = 2 × 180 |
| 2 | 180 | = 2 × 90 |
| 3 | 90 | = 2 × 45 |
| 4 | 45 | = 3 × 15 |
| 5 | 15 | = 3 × 5 |
| 6 | 5 | = 5 × 1 |
Small factors are found by trial division, the school method. Factors above 100,000 are found with the Miller-Rabin primality test and Pollard's rho method, which give the same unique result much faster.
🔬 Exponent form
| Prime | Exponent | Value |
|---|---|---|
| 2 | 3 | 8 |
| 3 | 2 | 9 |
| 5 | 1 | 5 |
Number of factors = (3 + 1) × (2 + 1) × (1 + 1) = 24.
🧩 All factors of 360
Every positive whole number that divides 360 evenly (24 in total):
Prime factorization calculator: everything you need to know
A prime factorization calculator breaks a whole number into the unique set of prime numbers that multiply to make it. Enter 360 and it returns 23 × 32 × 5 in exponent form, lists all 24 factors, counts them, and confirms whether the number is prime or composite, with every division step shown so it works as a learning tool, not just an answer machine.
What prime factorization means
A prime number is a whole number greater than 1 whose only divisors are 1 and itself: 2, 3, 5, 7, 11, 13, and so on. A composite number can be broken down into smaller factors. Prime factorization is the process of writing any integer greater than 1 as a product of primes. The result is guaranteed to be unique by the Fundamental Theorem of Arithmetic: no matter how you split the number, you always arrive at the same prime factors.
N = p1a₁ × p2a₂ × … × pkaₖ Here each p is a distinct prime and each a is the exponent counting how many times that prime appears. For 360, that is 23 × 32 × 51.
A worked example: factoring 360
Watch the trial-division method in action:
- 360 ÷ 2 = 180
- 180 ÷ 2 = 90
- 90 ÷ 2 = 45 (2 no longer divides evenly, move to 3)
- 45 ÷ 3 = 15
- 15 ÷ 3 = 5 (3 no longer divides, move up)
- 5 ÷ 5 = 1 (quotient reaches 1, so you are done)
Collecting the divisors: 2 appeared three times, 3 appeared twice, and 5 once, giving 23 × 32 × 5 = 360.
How to use this calculator
- Enter a whole number of 2 or greater in the input box (or tap one of the example chips).
- Read the headline factorization in exponent form: the big number at the top is your answer.
- Check the prime/composite badge directly underneath to see whether the number is prime.
- Follow the factor tree to see exactly which prime split off at each stage (360 = 2 × 180, 180 = 2 × 90, and so on).
- Scan the full list of factors at the bottom for every divisor of the number.
The result updates instantly as you type; there is no button to press. A thousands separator such as 1,000,000 is fine. Decimals and fractions get a friendly message, because prime factorization is only defined for positive integers, and a negative number is shown as −1 times the factorization of its absolute value.
Who this calculator is for
- Students checking homework on factors, factor trees, GCF, and LCM.
- Teachers and tutors who want a clean step-by-step example to walk through.
- Parents helping with middle-school or early high-school math.
- Programmers and puzzlers who need a quick factorization or a primality check.
- Anyone curious whether a number is prime or how it is built.
Key terms explained
- Prime number: an integer greater than 1 divisible only by 1 and itself (2, 3, 5, 7, 11…).
- Composite number: an integer greater than 1 that has factors besides 1 and itself.
- Factor (divisor): any whole number that divides the value with no remainder.
- Exponent form: grouping repeated primes as powers, e.g. 23 instead of 2 × 2 × 2.
- Factor tree: a diagram that repeatedly splits a number until every branch ends in a prime.
- Trial division: the method of testing small primes in turn to peel off factors.
Prime vs. composite: how to tell the difference
Every whole number greater than 1 is either prime or composite; there is no third option, and 1 itself is neither. A prime has exactly two divisors (1 and itself), so it cannot be broken down any further; it is already its own factorization. A composite number has at least one divisor other than 1 and itself, which means it can always be written as a product of smaller primes. When you ask "is this number prime?", you are really asking "does any prime up to its square root divide it evenly?" If the answer is no, the number is prime. For small numbers this calculator runs exactly that test (for very large ones it uses the faster Miller-Rabin test) and shows the verdict as a colored badge, so you never have to guess.
A common point of confusion is that small numbers feel "obviously" prime or composite, while larger ones are harder to judge by eye. For instance, 51 looks prime but is actually 3 × 17, and 91 looks prime but is 7 × 13. Trial division removes the guesswork by mechanically testing each prime in turn.
The first prime numbers
It helps to recognize the small primes on sight, because trial division always tests them first. Here are the first 25 prime numbers (every prime 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, 97 Notice that after 2, every prime is odd, because any even number larger than 2 is divisible by 2 and therefore composite. Notice too that primes thin out as numbers grow: there are 4 primes below 10, but only 21 between 100 and 200. They never run out, though: Euclid proved over two thousand years ago that there are infinitely many primes. If you need a quick primality check rather than a full factorization, simply enter the number and read the badge; a prime returns a factorization equal to itself.
How trial division works, step by step
The method behind this tool is the same one taught in school, just automated. Given a number N, it does the following:
- Divide out every 2. While N is even, divide by 2 and record a factor of 2. This strips out the only even prime first.
- Try odd numbers from 3 upward. Test 3, 5, 7, 9, 11… (the calculator skips even candidates because their 2s are already gone). Whenever one divides N evenly, record it and divide again with the same candidate until it no longer fits.
- Stop at the square root. Once the candidate is larger than the square root of what is left, no smaller factor remains to be found.
- Handle the leftover. If anything greater than 1 remains, it is itself a prime and becomes the final factor.
- Group into exponent form. Repeated primes are collapsed into powers for a clean answer.
This is fast for everyday numbers because most have at least one small prime factor that peels away quickly. It only slows down on large primes or "semiprimes" (a product of two big primes), where every candidate up to the square root must be tested; that slowness is the very property that makes factoring useful in cryptography. To stay instant on such inputs, the calculator stops trial division at 100,000 and checks any larger leftover with the Miller-Rabin primality test, splitting it with Pollard's rho method when it is not prime. The factors are the same; they are just found faster.
More worked examples
Example 1, a prime number (97): Trial division tries 2, 3, 5, and 7 (the primes up to √97 ≈ 9.8) and none divide evenly. With nothing left to divide, 97 is itself prime, so its factorization is just 97 and its only factors are 1 and 97.
Example 2, a power of two (1,024): Dividing by 2 repeatedly gives 512, 256, 128, 64, 32, 16, 8, 4, 2, 1: ten divisions in all. So 1,024 = 210, a perfect example of a number with a single prime factor raised to a high power. It has 11 factors (the powers of 2 from 20 to 210).
Example 3, a year (2,024): 2,024 ÷ 2 = 1,012, ÷ 2 = 506, ÷ 2 = 253; then 253 ÷ 11 = 23, and 23 is prime. So 2,024 = 23 × 11 × 23. Counting divisors: (3+1)(1+1)(1+1) = 16 factors.
Step-by-step: prime factorization of 504
This trace shows exactly how the calculator peels one prime off at a time. Each row divides the current value by the smallest prime that fits, until the quotient reaches a prime you cannot divide further.
| Step | Division | Prime factor | Factors so far |
|---|---|---|---|
| 1 | 504 ÷ 2 = 252 | 2 | 2 |
| 2 | 252 ÷ 2 = 126 | 2 | 2 × 2 |
| 3 | 126 ÷ 2 = 63 | 2 | 2 × 2 × 2 |
| 4 | 63 ÷ 3 = 21 | 3 | 2 × 2 × 2 × 3 |
| 5 | 21 ÷ 3 = 7 | 3 | 2 × 2 × 2 × 3 × 3 |
| 6 | 7 ÷ 7 = 1 (3 × 3 = 9 > 7, so 7 is prime) | 7 | 2 × 2 × 2 × 3 × 3 × 7 |
Grouping the repeats gives 504 = 23 × 32 × 7, with (3+1)(2+1)(1+1) = 24 factors.
Quick reference: factorizations of common numbers
A handy table of prime factorizations and factor counts for numbers people look up often:
| Number | Prime factorization | # of factors | Prime? |
|---|---|---|---|
| 12 | 2² × 3 | 6 | No |
| 36 | 2² × 3² | 9 | No |
| 60 | 2² × 3 × 5 | 12 | No |
| 97 | 97 | 2 | Yes |
| 100 | 2² × 5² | 9 | No |
| 120 | 2³ × 3 × 5 | 16 | No |
| 360 | 2³ × 3² × 5 | 24 | No |
| 1,000 | 2³ × 5³ | 16 | No |
| 1,024 | 2¹⁰ | 11 | No |
Prime factorization of every number from 2 to 60
The full chart below gives the prime factorization, divisor count, and prime-or-composite verdict for every integer from 2 to 60, the numbers that come up most in homework. Values are computed by the same trial-division method the calculator uses.
| Number | Prime factorization | # of factors | Prime or composite |
|---|---|---|---|
| 2 | 2 | 2 | Prime |
| 3 | 3 | 2 | Prime |
| 4 | 2² | 3 | Composite |
| 5 | 5 | 2 | Prime |
| 6 | 2 × 3 | 4 | Composite |
| 7 | 7 | 2 | Prime |
| 8 | 2³ | 4 | Composite |
| 9 | 3² | 3 | Composite |
| 10 | 2 × 5 | 4 | Composite |
| 11 | 11 | 2 | Prime |
| 12 | 2² × 3 | 6 | Composite |
| 13 | 13 | 2 | Prime |
| 14 | 2 × 7 | 4 | Composite |
| 15 | 3 × 5 | 4 | Composite |
| 16 | 2⁴ | 5 | Composite |
| 17 | 17 | 2 | Prime |
| 18 | 2 × 3² | 6 | Composite |
| 19 | 19 | 2 | Prime |
| 20 | 2² × 5 | 6 | Composite |
| 21 | 3 × 7 | 4 | Composite |
| 22 | 2 × 11 | 4 | Composite |
| 23 | 23 | 2 | Prime |
| 24 | 2³ × 3 | 8 | Composite |
| 25 | 5² | 3 | Composite |
| 26 | 2 × 13 | 4 | Composite |
| 27 | 3³ | 4 | Composite |
| 28 | 2² × 7 | 6 | Composite |
| 29 | 29 | 2 | Prime |
| 30 | 2 × 3 × 5 | 8 | Composite |
| 31 | 31 | 2 | Prime |
| 32 | 2⁵ | 6 | Composite |
| 33 | 3 × 11 | 4 | Composite |
| 34 | 2 × 17 | 4 | Composite |
| 35 | 5 × 7 | 4 | Composite |
| 36 | 2² × 3² | 9 | Composite |
| 37 | 37 | 2 | Prime |
| 38 | 2 × 19 | 4 | Composite |
| 39 | 3 × 13 | 4 | Composite |
| 40 | 2³ × 5 | 8 | Composite |
| 41 | 41 | 2 | Prime |
| 42 | 2 × 3 × 7 | 8 | Composite |
| 43 | 43 | 2 | Prime |
| 44 | 2² × 11 | 6 | Composite |
| 45 | 3² × 5 | 6 | Composite |
| 46 | 2 × 23 | 4 | Composite |
| 47 | 47 | 2 | Prime |
| 48 | 2⁴ × 3 | 10 | Composite |
| 49 | 7² | 3 | Composite |
| 50 | 2 × 5² | 6 | Composite |
| 51 | 3 × 17 | 4 | Composite |
| 52 | 2² × 13 | 6 | Composite |
| 53 | 53 | 2 | Prime |
| 54 | 2 × 3³ | 8 | Composite |
| 55 | 5 × 11 | 4 | Composite |
| 56 | 2³ × 7 | 8 | Composite |
| 57 | 3 × 19 | 4 | Composite |
| 58 | 2 × 29 | 4 | Composite |
| 59 | 59 | 2 | Prime |
| 60 | 2² × 3 × 5 | 12 | Composite |
Of these 59 numbers, 17 are prime (2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59) and the remaining 42 are composite. Highly composite values like 48 (10 factors) and 60 (12 factors, the most in the chart) pack the most divisors, which makes 60 easy to split into halves, thirds, quarters, fifths and sixths for minutes, seconds and degrees.
Divisibility rules cheat sheet
When you factor by hand, divisibility rules let you spot a prime factor without doing the full division. These shortcuts test the small primes that trial division tries first:
| Divisible by | Rule | Example |
|---|---|---|
| 2 | Last digit is even (0, 2, 4, 6, 8) | 138 → ends in 8 ✓ |
| 3 | Digit sum is a multiple of 3 | 123 → 1+2+3 = 6 ✓ |
| 4 | Last two digits form a multiple of 4 | 316 → 16 ✓ |
| 5 | Last digit is 0 or 5 | 285 → ends in 5 ✓ |
| 6 | Divisible by both 2 and 3 | 114 → even, 1+1+4 = 6 ✓ |
| 9 | Digit sum is a multiple of 9 | 729 → 7+2+9 = 18 ✓ |
| 10 | Last digit is 0 | 450 → ends in 0 ✓ |
| 11 | Alternating digit sum is a multiple of 11 | 253 → 2−5+3 = 0 ✓ |
There is no simple rule for 7, so trial division just tests it directly. The rules for 2, 3, and 5 are the workhorses: between them they peel off the factors of the vast majority of numbers you will meet in homework.
Counting factors from the factorization
You do not have to list divisors one by one to count them. Take each exponent, add 1, and multiply the results. For 360 = 23 × 32 × 51, the divisor count is (3+1) × (2+1) × (1+1) = 4 × 3 × 2 = 24. The calculator shows the full list so you can verify it, but the formula is the fast way to do it by hand.
Using prime factors for GCF and LCM
Prime factorization is the backbone of two common school tasks. For the greatest common factor (GCF) of two numbers, factor both and multiply each shared prime raised to its lowest power. For the least common multiple (LCM), take every prime that appears in either number raised to its highest power. For example, 12 = 22 × 3 and 18 = 2 × 32: the GCF is 2 × 3 = 6, and the LCM is 22 × 32 = 36.
A neat shortcut ties the two together: for any pair of numbers, GCF × LCM = the product of the numbers themselves. For 12 and 18 that is 6 × 36 = 216 = 12 × 18. If you want the answer worked out for you, factor each number here first, then run the pair through the dedicated GCF Calculator or LCM Calculator to confirm. The same prime breakdown is also what powers the Fraction Calculator when it reduces a fraction to lowest terms.
The table below reads the GCF and LCM straight off the prime factorizations of common number pairs. Notice the identity in the last column: GCF × LCM always equals the product of the two numbers.
| Pair | Factorizations | GCF | LCM | GCF × LCM |
|---|---|---|---|---|
| 12, 18 | 2² × 3 | 2 × 3² | 6 | 36 | 216 |
| 8, 12 | 2³ | 2² × 3 | 4 | 24 | 96 |
| 15, 20 | 3 × 5 | 2² × 5 | 5 | 60 | 300 |
| 16, 24 | 2⁴ | 2³ × 3 | 8 | 48 | 384 |
| 24, 36 | 2³ × 3 | 2² × 3² | 12 | 72 | 864 |
| 30, 45 | 2 × 3 × 5 | 3² × 5 | 15 | 90 | 1,350 |
Where prime factorization is used in the real world
Prime factorization is not just a classroom exercise; it sits underneath several everyday and high-stakes applications:
- Simplifying fractions: cancelling the prime factors shared by the numerator and denominator is exactly how a fraction is reduced to lowest terms.
- Scheduling and timing: the LCM (built from prime factors) tells you when two repeating events line up again, for example when two buses on different cycles next leave together.
- Square roots: a number is a perfect square only when every prime in its factorization has an even exponent, which is how you simplify a radical like √72 = √(23 × 32) = 6√2. The Square Root Calculator uses the same idea.
- Cryptography: RSA encryption multiplies two enormous primes together; the security rests on the fact that factoring the product back into those primes is practically impossible for current computers.
- Computer science: hashing, pseudo-random number generators, and error-correcting codes all lean on properties of primes and factorization.
Answers to the numbers people ask about
Some specific numbers come up again and again. Here is the quick truth on each:
- Is 0 prime? No. Zero is divisible by every number, so it is neither prime nor composite and has no factorization.
- Is 1 prime? No, it has only one divisor. It is neither prime nor composite.
- Is 2 prime? Yes, and it is the only even prime; every other even number is divisible by 2.
- Is 9 prime? No, 9 = 32. A number ending in 9 is not automatically prime.
- Is 51 prime? No, 51 = 3 × 17, a classic "looks prime but isn't" example.
- Is 97 prime? Yes, 97 is the largest prime below 100.
Tips for factoring by hand
- Always start at 2. If the number is even, keep halving until it is odd.
- Use divisibility rules. A number is divisible by 3 if its digits sum to a multiple of 3, and by 5 if it ends in 0 or 5.
- Skip even divisors once you have removed all the 2s; only odd primes can remain.
- Stop at the square root. If no prime up to √N divides the leftover, the leftover is prime.
- Group repeats as exponents at the end to write the answer cleanly.
How this compares to related calculators
This page answers "what are the prime factors of this number?" If your question is slightly different, a sister tool fits better:
- To find the largest factor two numbers share, use the GCF Calculator; for the smallest common multiple, use the LCM Calculator.
- To reduce or combine fractions using shared factors, use the Fraction Calculator.
- To simplify a radical from its factorization, use the Radical Calculator or the Square Root Calculator, and to raise primes to powers, the Exponent Calculator.
- For n! (the product of all integers up to n, which has its own dense factorization), use the Factorial Calculator.
- To see the full worked steps of a single division, use the Long Division Calculator.
All of these build on the same foundation: every integer is, at heart, a unique product of primes. Once you can factor a number, the rest of arithmetic gets a lot easier. To check one number's remainder against another without factoring at all, the Modulo Calculator is the quickest route.
Sources
- NIST Digital Library of Mathematical Functions, §27.2 Functions: the fundamental theorem of arithmetic (every integer n > 1 is uniquely a product of prime powers) and the divisor function d(n), the number of divisors of n.
- Euclid's Elements, Book IX, Proposition 20: prime numbers are more than any assigned multitude of prime numbers (there are infinitely many primes).
- Common Core State Standards for Mathematics: 4.OA.B.4 (factor pairs, and whether a whole number from 1 to 100 is prime or composite) and 6.NS.B.4 (greatest common factor and least common multiple).
⚠️ Common mistakes & edge cases
Treating 1 as a prime factor
1 is neither prime nor composite, and it never belongs in a factorization: writing "1 × 2 × 3" adds nothing. The number 1 itself has no prime factorization at all.
Stopping with composite factors
Writing 36 = 4 × 9 is not finished, because 4 and 9 are not prime. Keep splitting until every factor is prime: 36 = 2² × 3². A factor tree must reach prime leaves on every branch.
Confusing prime factors with all factors
The prime factors of 12 are just 2 and 3. Its full list of factors is 1, 2, 3, 4, 6, 12. Make sure you answer the question that was actually asked, because the two lists are different.
Forgetting the exponents
2 × 2 × 2 × 3 × 3 × 5 is correct but unwieldy. The standard answer groups repeats: 2³ × 3² × 5. Dropping an exponent (writing 2 × 3 × 5 for 360) gives the wrong number.
❓ Frequently asked questions
What is prime factorization?
Prime factorization is writing a whole number as a product of prime numbers, the numbers greater than 1 whose only divisors are 1 and themselves. For example, 360 = 2 × 2 × 2 × 3 × 3 × 5, which is written in exponent form as 2³ × 3² × 5. By the Fundamental Theorem of Arithmetic, every integer greater than 1 has exactly one prime factorization (apart from the order of the factors).
How does this calculator find the prime factors?
For small factors it uses trial division, the school method: it divides by the smallest prime that fits, first 2 as many times as possible, then 3, 5, 7 and so on through the primes up to 100,000. If a large cofactor is left, a deterministic Miller-Rabin test decides whether it is prime, and Pollard's rho method splits it if it is not. Every step is exact, and the factor tree lists the divisions from the smallest prime up.
What does exponent form mean?
Exponent form groups repeated prime factors using powers. Instead of 2 × 2 × 2 × 3 × 3 × 5, you write 2³ × 3² × 5, where the small raised number (the exponent) counts how many times that prime appears. It is the compact, standard way mathematicians write a factorization.
Is 1 a prime number?
No. By definition a prime number has exactly two distinct divisors: 1 and itself. The number 1 has only one divisor, so it is neither prime nor composite, and it has no prime factorization. The smallest prime number is 2, which is also the only even prime.
What is the difference between prime factors and all factors?
Prime factors are only the prime building blocks (for 12 they are 2 and 3). All factors, also called divisors, are every whole number that divides the value evenly, including 1 and the number itself (for 12 they are 1, 2, 3, 4, 6 and 12). This calculator shows both: the prime factorization and the full list of divisors.
How is a factor tree related to this?
A factor tree is the visual version of the same process: you split the number into any two factors, then keep splitting each branch until every leaf is prime. No matter which splits you choose, the prime leaves are always the same set; that is the uniqueness guaranteed by the Fundamental Theorem of Arithmetic. The calculator's factor tree always splits off the smallest prime, so it reads as a ladder: 360 = 2 × 180, 180 = 2 × 90, and so on down to 5 = 5 × 1.
How do I count the total number of factors?
Take the exponents in the prime factorization, add 1 to each, and multiply them together. For 360 = 2³ × 3² × 5¹ the exponents are 3, 2 and 1, so the number of divisors is (3 + 1) × (2 + 1) × (1 + 1) = 4 × 3 × 2 = 24. The calculator lists all 24 factors and confirms the count for you.
Can I use prime factorization to find the GCF and LCM?
Yes. To find the greatest common factor (GCF) of two numbers, take each shared prime to its lowest power and multiply. For the least common multiple (LCM), take every prime that appears in either number to its highest power. Factoring both numbers first makes both calculations straightforward.
Why does trial division only test up to the square root?
If a number has a factor larger than its square root, it must also have a matching factor smaller than the square root (because the two multiply back to the original). So once trial division passes the square root of what is left with nothing dividing evenly, whatever remains has to be prime. Stopping at the square root makes the method fast without missing anything.
Does this work for very large numbers?
Yes, for whole numbers up to 18 digits (999,999,999,999,999,999), with exact big-integer arithmetic throughout. Plain trial division would be slow for an 18-digit prime or for the product of two large primes, so above 100,000 the calculator switches to the Miller-Rabin primality test and Pollard's rho method, and even those inputs return in a fraction of a second.
What is the prime factorization of 100?
100 = 2² × 5². Dividing by 2 gives 50, then 25; 25 is 5 × 5. Grouped into exponent form that is 2 squared times 5 squared. Because both exponents are even, 100 is a perfect square (10 × 10), and it has (2 + 1) × (2 + 1) = 9 factors: 1, 2, 4, 5, 10, 20, 25, 50 and 100.
How do I make a factor tree?
Start with your number and split it into any two factors, writing them as branches below. Keep splitting each branch that is not yet prime, circling the prime leaves as you reach them. When every branch ends in a circled prime, collect those primes and group repeats as exponents; that is your factorization. Different starting splits give the same prime leaves, which is the uniqueness guaranteed by the Fundamental Theorem of Arithmetic.
Is a number with an even digit sum always composite?
No. Digit sums only test divisibility by 3 (when the digit sum is a multiple of 3) and by 9. An even digit sum on its own says nothing about primality: 53 has digit sum 8 and is prime, while 35 has digit sum 8 and is composite (5 × 7). Use the full set of divisibility rules, or just let the calculator test the number for you.
Can negative numbers be prime?
No. By the standard definition, prime numbers are integers greater than 1, so primality applies only to positive whole numbers, and a negative value like −7 is not counted as prime. Prime factorization is likewise defined for positive integers; for a negative number you factor its absolute value and keep the sign in front, as in −360 = −1 × 2³ × 3² × 5, which is what the calculator shows when you enter one.
Is 36 a prime or composite number?
36 is composite. It factors as 2 × 2 × 3 × 3, written in exponent form as 2² × 3², so it has divisors beyond 1 and itself. It has (2 + 1) × (2 + 1) = 9 factors in all: 1, 2, 3, 4, 6, 9, 12, 18 and 36. Because both exponents are even, 36 is also a perfect square (6 × 6).
💡 Good to know
Every number has exactly one prime factorization
This is the Fundamental Theorem of Arithmetic. However you build your factor tree, the prime factors you end up with are always the same; only the order can differ. That uniqueness is why prime factors are so useful for comparing numbers.
2 is the only even prime
Every other even number is divisible by 2, so it cannot be prime. That is why, after removing all the 2s, you only ever need to test odd numbers when factoring by hand.
Big numbers are hard to factor on purpose
Multiplying two large primes is easy, but reversing it (factoring the product back into those primes) is extremely slow when the primes have hundreds of digits. Modern encryption like RSA relies on exactly this asymmetry to keep data safe.
Related Calculators
GCF Calculator
Find the greatest common factor of numbers
LCM Calculator
Find the least common multiple of numbers
Radical Calculator
Simplify square roots and radicals into simplest form
Simplify Fractions Calculator
Reduce any fraction to lowest terms with steps
Common Denominator Calculator
Least common denominator of two or more fractions
Factorial Calculator
Calculate the factorial of a number (n!)
Modulo Calculator
Remainder of a division (a mod n)
Factoring Calculator
Factor numbers, quadratics and simple polynomials with steps