Prime Number Checker
A prime number has exactly two factors: 1 and itself. 97 is prime; 91 is not, because 91 = 7 × 13. Enter any whole number up to one trillion to see whether it is prime and list all of its factors.
Factor pairs: 1 × 97. Every divisor pairs with one on the other side of the square root.
A prime number greater than 1 has exactly two positive factors: 1 and itself.
Prime or composite, with a checkable reason
- A prime is an integer greater than 1 with exactly two positive factors. One is neither prime nor composite.
- Check integers from 1 to 1,000,000,000,000; composite results include a divisor proof and factor pairs.
How to use the Prime Number Checker
- Enter a whole number between 1 and 1,000,000,000,000.
- The calculator tests possible divisors from 1 through the integer square root of the value.
- When a divisor is found, its matching factor pair is added.
- The two halves of the factor list are combined in ascending order.
- A number greater than 1 is prime when it has exactly two positive factors: 1 and itself.
- A number greater than 1 with additional factors is composite.
- The number 1 is classified separately as neither prime nor composite.
Input domain and practical limits
A prime is a positive integer greater than 1 with exactly two positive divisors. Zero, negatives and decimals are outside this checker’s input domain. Large inputs can take longer; this is not a cryptographic primality service.
Examples
A composite witness
91 = 7 × 13. Its factors are 1, 7, 13 and 91, so it is composite.
A prime
97 has only 1 and 97 as positive factors, so it is prime.
Prime numbers from 1 to 100
| Range | Primes | Count |
|---|---|---|
| 1–10 | 2, 3, 5, 7 | 4 |
| 11–20 | 11, 13, 17, 19 | 4 |
| 21–30 | 23, 29 | 2 |
| 31–40 | 31, 37 | 2 |
| 41–50 | 41, 43, 47 | 3 |
| 51–60 | 53, 59 | 2 |
| 61–70 | 61, 67 | 2 |
| 71–80 | 71, 73, 79 | 3 |
| 81–90 | 83, 89 | 2 |
| 91–100 | 97 | 1 |
Total: 25 primes below 100.
Numbers that look prime but are not
These odd numbers are often mistaken for primes. Each has a factor other than 1 and itself.
| Number | Prime factors |
|---|---|
| 51 | 3 × 17 |
| 57 | 3 × 19 |
| 87 | 3 × 29 |
| 91 | 7 × 13 |
| 119 | 7 × 17 |
| 133 | 7 × 19 |
| 143 | 11 × 13 |
| 161 | 7 × 23 |
| 169 | 13 × 13 |
| 187 | 11 × 17 |
| 209 | 11 × 19 |
| 221 | 13 × 17 |
Frequently asked questions
How do I know if a number is prime?
Divide it by every prime up to its square root. If none of them divides evenly, the number is prime. The checker does this instantly and also lists every factor.
Is 1 a prime number?
No. A prime must have exactly two different factors, and 1 has only one. Mathematicians classify 1 as neither prime nor composite.
Is 2 a prime number?
Yes. 2 is the smallest prime and the only even prime, because every other even number is divisible by 2.
How many prime numbers are there below 100?
There are 25: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97.
Is 51 a prime number?
No. 51 = 3 × 17. A quick test: if the digits add up to a multiple of 3 (5 + 1 = 6), the number is divisible by 3.
Is 91 a prime number?
No. 91 = 7 × 13. It is one of the most common numbers mistaken for a prime.
Why only test divisors up to the square root?
If a number has a factor larger than its square root, it must also have a matching factor smaller than the square root. So if nothing up to the square root divides it, nothing above does either.
What is the largest number I can check?
The checker handles whole numbers up to 1,000,000,000,000 (one trillion) and lists all of their positive factors.
Why is 1 neither prime nor composite?
It has only one positive divisor. A prime needs exactly two, and a composite is a positive integer greater than 1 with additional divisors.
More math tools
Roman Numeral Converter
Convert numbers to Roman numerals and Roman numerals back to numbers.
Open tool →Binary Converter
Convert binary, decimal, hexadecimal and octal integers instantly.
Open tool →Percentage Change Calculator
Calculate percentage increase or decrease from an original value to a new value.
Open tool →Profit Margin Calculator
Calculate profit margin, gross margin, markup and target selling price.
Open tool →Markup Calculator
Calculate markup, selling price, profit and margin from cost or price.
Open tool →Scientific Calculator
Advanced calculator for trig, logs, roots, powers, factorials and more.
Open tool →