How to use it
- Choose Check one number or List primes in a range.
- Enter a whole number up to one trillion, or a range containing at most 100,000 consecutive integers.
- Calculate to see the result. Copy it or download a plain text file.
Questions and answers
Is 1 a prime number?
No. A prime is an integer greater than 1 with exactly two positive divisors. One has only one positive divisor, so it is neither prime nor composite. Zero is neither as well.
Why do you only test divisors up to the square root?
If n = a × b and both factors exceeded √n, their product would exceed n. Every composite number therefore has a factor no greater than √n. The single-number check uses exact division, not a probability estimate.
Does the range include both endpoints?
Yes. The tool includes both endpoints and lists only primes. For example, 1 to 100 has 25 primes, from 2 to 97; 0 and 1 are excluded.
Common questions and fixes
Why is 1 not a prime number?
A prime must be greater than 1 and have exactly two distinct positive divisors. The number 1 has only one: itself. It is neither prime nor composite. Two has divisors 1 and 2, so it is the first prime.
Step by step
- Choose Check one number, enter 1 and calculate. Read the neither prime nor composite result.
- Change the number to 2 and calculate again. Its two positive divisors are 1 and 2.
- Try 4 next. The factor pair 2 × 2 shows a divisor beyond 1 and itself.
What are the prime numbers from 1 to 100?
There are 25 primes from 1 to 100: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89 and 97. Both endpoints are checked; neither 1 nor 100 is prime.
Step by step
- Choose List primes in a range and set From to 1 and To to 100.
- Calculate and check the count of 25, beginning with 2 and ending with 97.
- Use Copy result or Download TXT for one prime per line. The on-screen list uses commas.
Is 91 prime or composite, and how can I prove it?
91 is composite because 7 × 13 = 91. Its positive divisors are 1, 7, 13 and 91. Being odd does not make it prime. To find a factor, check prime divisors no larger than √91, about 9.54: 2, 3, 5 and 7.
Step by step
- Use Check one number, enter 91 and calculate to see the factor pair 7 × 13.
- Check the candidate prime divisors: 2, 3 and 5 do not divide 91; 7 does.
- Compare with 97, which has no prime divisor through √97 and is prime.