Prime Number Checker

Enter a number above to check if it is prime or composite.

What is a Prime Number?

A prime number is a whole number greater than 1 that is only divisible by 1 and itself. In other words, a prime number has only two factors, 1 and itself. A number that is not a prime is a composite number which means it has more than two factors.

How the Prime Checker Works

For numbers under 15 digits, this calculator uses Prime Factorization. It divides the number by prime numbers up to its square root. If the number is composite and less than 15 digits long, the calculator lists all factors found.

For large numbers (more than 15 digits and up to 500 digits), this calculator uses the robust Miller–Rabin primality test. Since the calculation can become highly resource-intensive, the test returns either “Composite” or “Probable Prime” for numbers over 25 digits long.

Is 1 a Prime Number?

No. Since the only factor of 1 is 1, it does not meet the criteria of having exactly two distinct factors (1 and itself). 1 is considered neither prime nor composite.

Prime Numbers 1-109 Table

There are 25 prime numbers between 1 and 100. This table lists the first 109 prime numbers. Hover your cursor over a cell to see its rank (e.g., Prime[13] = 41).

Range+0+1+2+3+4+5+6+7+8+9
1-92357
10-1911131719
20-2923293137414347535961
30-3967717379838997101103107
40-49109113127131137139149151157163
50-59167173179181191193197199211223
60-69227229233239241251257263269271
70-79277281283293307311313317331337
80-89347349353359367373379383389397
90-99401409419421431433439443449457
100-109461463467479487491499503509521

Prime Numbers 1-1000

There are 168 prime numbers between 1 and 1000. For a complete, searchable list, you can refer to external resources.