How to use it
- Choose to check a number or list a range.
- Enter the number, or the start and end.
- Read the answer, factors and neighbouring primes, or copy the list.
How it works
A number n is tested by trying divisors of the form 6k ± 1 up to √n (trial division), which gives an exact answer. Ranges are listed with the Sieve of Eratosthenes. 1 is not prime; 2 is the only even prime.
Examples
- 91 = 7 × 13 is not prime. There are 25 primes below 100 and 168 below 1,000.
Limitations
- Numbers up to 10^15 are checked exactly; very large numbers (such as those used in cryptography) are beyond this tool.
- Lists show the first 2,000 primes of a range, with the total count.
Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.