How to use the Prime Factorization Calculator
- Enter a positive integer into the Whole number field.
- Click calculate to process the prime factorization.
- View the prime factors expressed in standard exponential form.
- Check whether the number is identified as prime or composite.
- Review the total number of divisors calculated for your input.
How it works
The tool outputs the prime factorization, primality status, and total number of divisors for your chosen integer. Expressed in exponential notation, the factorization breaks composite numbers into prime building blocks. For instance, entering 360 yields 2³ × 3² × 5, establishing that the number is composite and has 24 total positive divisors calculated using the exponents of each prime factor.
The calculation relies on the Fundamental Theorem of Arithmetic, a core mathematical theorem codified in number theory. The algorithm implements trial division by testing prime candidates up to the principal square root of the remaining value. When all divisible factors are removed, any remaining value above 1 must be prime. The divisor count is systematically computed by multiplying each factor's exponent plus one.
This tool is designed for positive integers greater than 1, as zero and negative integers follow different algebraic conventions. Because trial division increases in computational complexity with larger numbers, factoring extremely large numbers—such as 100-digit integers used in modern cryptography—requires specialized algorithms like the General Number Field Sieve. For standard homework, algebra, and computer science problems, it delivers instantaneous results.
Formula
n = p₁^a × p₂^b × …; divisors = (a+1)(b+1)…
Worked example
360 = 2³ × 3² × 5, which has 24 divisors.
Frequently asked questions
Is 1 a prime number?+
No, 1 is neither prime nor composite. By mathematical definition, a prime number is a positive integer greater than 1 that has exactly two distinct positive divisors: 1 and itself. Since 1 has only one divisor, it does not meet the standard criteria.
Why do you only test factors up to the square root?+
If a whole number has a factor larger than its square root, it must pair with a corresponding factor smaller than its square root to produce the original product. Once you have tested all possible factors up to the square root without success, the remaining number must be prime.
What is the Fundamental Theorem of Arithmetic?+
The Fundamental Theorem of Arithmetic states that every whole number greater than 1 is either a prime itself or can be represented as a unique product of prime numbers, disregarding the order of the factors. This ensures that every composite integer has exactly one unique prime factorization.
How do you calculate the total number of divisors?+
After finding the prime factorization in exponent form, add 1 to each exponent and multiply those values together. For example, 360 equals 2³ × 3² × 5¹. Adding 1 to each exponent gives (3+1) × (2+1) × (1+1), which equals 24 total positive divisors.
What is the difference between prime and composite numbers?+
A prime number is a whole number greater than 1 that can only be divided evenly by 1 and itself, such as 2, 3, 5, or 7. A composite number has additional positive divisors beyond 1 and itself, meaning it can be factored into smaller primes.
✓ Written and reviewed by the Calcumia editorial team · Last updated: · How we build and check our calculators
Results are estimates for information only and are not financial, medical or legal advice.