A small prime: 97
Du skriver inn
- Tall
- 97
Du får
- Resultat
- 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.
Kjørt med verktøyets egen kode.
Hverdag · verktøy
Skriv inn et heltall og finn ut med ett klikk om det er et primtall.
Checks integers up to one trillion locally.
Om verktøyet
Et primtall er et heltall større enn 1 med nøyaktig to positive divisorer. For eksempel er 97 et primtall, mens 1 og 91 ikke er det. Kontroller ikke-negative heltall opptil 1 000 000 000 000 i nettleseren.
Veiledning
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.
Kjørt med verktøyets egen kode.
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.
Kjørt med verktøyets egen kode.
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.
Kjørt med verktøyets egen kode.
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.
Kjørt med verktøyets egen kode.
This is the highest accepted value. It is even, so the answer is quick. Adding 1 gives a number the page refuses.
Kjørt med verktøyets egen kode.
Primes are defined for whole numbers only. The same message appears for negatives, letters and large exponent notation such as 1e30.
Kjørt med verktøyets egen kode.
Vanlige spørsmål
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 must have exactly two different divisors, 1 and itself. The number 1 has only one divisor, so it is not prime. The number 0 is not prime either, and the page answers Not prime for both.
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.
Skriv inn et heltall og finn ut med ett klikk om det er et primtall.
Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.