➗ Prime Checker and Factorization
Enter a positive integer to see if it is prime, plus the full prime factorization when it is composite. Handy for homework and quick checks.
What this tool does
The prime checker tests whether a positive integer is prime and, when it is composite, returns its full prime factorization in exponent form. It trial-divides by primes up to the square root of the number, which is sufficient for the fifteen-digit range the page supports.
The factorization makes the result verifiable: 360 becomes 2 cubed times 3 squared times 5, so you can multiply the factors back and confirm the answer.
When to use it
- Checking whether a number is prime for homework or a puzzle.
- Finding the prime factorization of a composite number.
- Exploring divisors before simplifying a fraction or a radical.
- Verifying a claim about a number's factors.
How it works
- Enter a positive integer up to 15 digits.
- Press Check. The page trial-divides by primes up to the square root.
- Read whether it is prime and the exponent form of its factors.
Worked example
Enter 360. The checker reports that it is composite and factors it as 2^3 × 3^2 × 5. Multiplying 8, 9 and 5 returns 360, which confirms the factorization. Enter 17 and the result states that it is prime with no smaller divisors.
- 17 is prime, so the factorization is 17.
- 360 factors as 2^3 × 3^2 × 5.
- 1 is neither prime nor composite and is reported that way.
Accuracy and limitations
- Only positive integers up to about fifteen digits are supported; larger values exceed safe integer precision.
- The trial-division method is fast for everyday numbers but not suitable for cryptographic-sized primes.
- 1 is neither prime nor composite and is reported separately, while 0 and negative numbers are rejected.
Privacy and data handling
All division and factorization happen locally in your browser. The number is not sent to a server.
Frequently asked questions
What is the size limit?
Inputs longer than 15 digits are rejected so the page stays responsive. Use a computer-algebra tool for huge integers.
Are negatives accepted?
No. Primality is defined for integers greater than 1. Enter the absolute value.
Is the number uploaded?
No. Factorization runs in your browser.
Is 2 a prime number?
Yes. 2 is the only even prime, because it has exactly two positive divisors: 1 and itself.
Why is the factorization shown with exponents?
Exponent form is compact and shows repeated factors clearly, for example 2^3 instead of 2 × 2 × 2.
Related tools
More Math tools →Percentage Calculator
Calculate percentages, percentage of a number, and percentage change.
Ratio Calculator
Simplify ratios and solve proportions instantly.
Average Calculator
Calculate mean, median, mode, sum and count from a list of numbers.
Fraction Calculator
Add, subtract, multiply or divide fractions and simplify the result.