A small prime: 97
You enter
- Number
- 97
You get
- Result
- Prime number
No whole number from 2 to 9 divides 97, and 9 is the largest to try because 10 times 10 is already more than 97. So only 1 and 97 divide it.
Run through the tool’s own code.
Everyday tool
Enter a whole number and find out whether it is prime in one click.
Checks integers up to one trillion locally.
About this tool
A prime number is a whole number greater than 1 with exactly two positive divisors. For example, 97 is prime, while 1 and 91 are not. Check non-negative integers up to 1,000,000,000,000 in your browser.
Guide
This page tells you whether a whole number is prime. Type a number, press the button, and read the verdict: Prime number or Not prime. When the number is not prime, the page also shows one way to split it into two factors, such as 91 = 7 × 13. Numbers up to one trillion are checked by plain division. Larger ones, up to 3,317,044,064,679,887,385,961,980, go through a fixed Miller-Rabin test whose answer is exact in that range. It suits students, puzzle fans and programmers. It does not list every prime factor, find the next prime, or accept negative numbers and decimals. Everything runs in your browser.
No whole number from 2 to 9 divides 97, and 9 is the largest to try because 10 times 10 is already more than 97. So only 1 and 97 divide it.
Run through the tool’s own code.
91 looks odd and prime-like, but 7 times 13 is 91. For numbers up to one trillion the factor shown is the smallest one above 1.
Run through the tool’s own code.
A prime needs exactly two divisors, and 1 has only one. The same goes for 0. Neither shows a factor line, because there is nothing to split.
Run through the tool’s own code.
This is over one trillion, so the big-integer test runs. It is the product of two nine-digit primes, and the page finds and shows both.
Run through the tool’s own code.
This is the highest accepted value. It is even, so the answer is quick. Adding 1 gives a number the page refuses.
Run through the tool’s own code.
Primes are defined for whole numbers only. The same message appears for negatives, letters and large exponent notation such as 1e30.
Run through the tool’s own code.
UsefulVerse guides
Common questions
Type a whole number in the box and press Check number. The page replies with Prime number or Not prime. If it is not prime, it adds a line that splits the number into two factors, so you can see why it failed.
No. A prime number is greater than 1 and has exactly two positive divisors: 1 and itself. The smallest prime is 2; 97 is another example.
The upper limit is 3,317,044,064,679,887,385,961,980, which has 25 digits. A number one higher, or larger, is refused with the message Enter a whole number. Smaller whole numbers, including 0 and 1, are all accepted.
Above one trillion it runs a Miller-Rabin test using the first 13 prime bases. Researchers showed that no composite number below the limit passes all 13 bases, so the yes or no answer is exact there. It is not a guess or a probability.
The page is a primality checker, not a factoring tool. It shows a single pair of factors as evidence that the number is not prime. To get the full prime breakdown, test the second factor again and repeat.
For numbers above one trillion, finding a factor can take long, so the search stops after about 0.3 seconds. When that happens you still see Not prime, just without the equation. The verdict comes from a separate test and stays correct.
The box rejects anything that is not a plain non-negative whole number. Decimals like 3.5, a minus sign, letters, commas and large exponent forms like 1e30 all trigger it. So does a value at or above 3,317,044,064,679,887,385,961,981.
Yes to both. The number 2 has only the divisors 1 and 2. Every other even number can also be divided by 2, so each has at least three divisors. Type 2 into the box and the page confirms Prime number.
No. The test runs in your own browser, and the status line says the number was checked locally. Nothing you type is uploaded, saved on a server or shared with anyone.
A factorisation tool returns every prime that multiplies to your number, such as 2 × 2 × 3 for 12. This page answers one question, prime or not, and shows at most one factor pair. It also does not find the next or previous prime.
It is meant for learning and checking numbers, not for building security. Real keys are hundreds of digits long, far above this limit, and should come from a trusted cryptography library. Use this page to explore how primes behave.
A prime number is an integer greater than 1 with exactly two positive divisors: 1 and itself. The number 1 is not prime.
Enter a whole number and select Check number. The result tells you whether it is prime; composite numbers include a divisor other than 1 and themselves.
It tests whole numbers from 0 through 1,000,000,000,000. Decimal values, negative values and prime factorization are not supported.