Updated · Built and checked by the PlinzoTools team, formulas tested against published sources
Check whether a number is prime or not prime.
This tool checks whether a whole number is prime (divisible only by 1 and itself) using trial division up to the number's square root -- fast even for fairly large numbers.
Enter a whole number. The tool instantly shows a simple Prime or Not Prime result (it does not list factors -- use the Factor Pair Finder for that).
You enter one number, and the result panel displays either Prime or Not Prime, with your number shown underneath in a readable, comma-grouped form. The check itself is a trial division routine: values below 2 are rejected, 2 is accepted, even numbers above 2 are rejected, and then only odd divisors from 3 upward are tested, stopping once the divisor squared exceeds the number. If none of them divides evenly, the number is prime. Only whole numbers can be prime, so a decimal such as 17.4 gets a prompt to enter a whole number instead of being rounded.
If a number n has a factor larger than its square root, it must also have a matching factor smaller than the square root, because the two multiply to n. So if no divisor turns up below the square root, none exists at all. For 97, the square root is a little under 10, so only 3, 5, 7 and 9 need testing; none divide 97, so it is prime. This shortcut is why the check stays fast even for large inputs.
The panel only tells you whether the number is prime, not which factors it has. If you get Not Prime and want to know why, use a factor tool such as the Factor Pair Finder on this site, or test small primes yourself using these divisibility rules:
Primes appear in fractions (a fraction whose numerator and denominator share no prime factor is fully simplified), in scheduling and gear ratios (coprime counts spread wear evenly), in hash table sizes, and in classroom number theory. A prime check is a quick first step before deciding whether a number can be split into equal groups: a prime count of items can only be arranged in a single row.
No -- by mathematical convention, 1 is neither prime nor composite. The tool reflects this.
It works efficiently for numbers well into the billions, since trial division only needs to check up to the square root of the number.
The tool asks for a whole number, because only integers can be prime. It does not round your input.
No, it only reports Prime or Not Prime. Use a factor pair finder to see which numbers divide it.
Yes. It has exactly two divisors, 1 and 2, and it is the only even prime.
They are shown as Not Prime, since prime numbers are defined as whole numbers greater than 1.
Reference: NIST Weights and Measures