Prime number checker

Check whether an integer is prime.

Numbers Stateless

Tests integers from 0 to 10^18 using 40 rounds of Miller–Rabin.

Quick guide

Try it with your own data when you’re ready.

Try an example

You enter

Integer from 0 to 1000000000000000000
97

You get

Yes
How it works & limits

Tests integers from 0 to 10^18 using 40 rounds of Miller–Rabin. Zero and one are not prime.

Example: 97 is prime; 100 is not. The result is a probabilistic primality test.