Prime Number Table

List of prime numbers with primality checking.

All 168 prime numbers up to 1,000, ten to a row, from 2, 3, 5 and 7 up to 997. A prime number has exactly two divisors, 1 and itself, so 1 isn't prime and 2 is the only even prime. Primes thin out as numbers grow: there are 25 below 100 but only 14 between 900 and 1,000. They're the building blocks of every whole number (each one factors into primes in exactly one way), which is why they matter for fractions, codes and computer security. To test a bigger number, try dividing it by the primes up to its square root.

All 168 prime numbers up to 1,000

#1#2#3#4#5#6#7#8#9#10
2357111317192329
31374143475359616771
7379838997101103107109113
127131137139149151157163167173
179181191193197199211223227229
233239241251257263269271277281
283293307311313317331337347349
353359367373379383389397401409
419421431433439443449457461463
467479487491499503509521523541
547557563569571577587593599601
607613617619631641643647653659
661673677683691701709719727733
739743751757761769773787797809
811821823827829839853857859863
877881883887907911919929937941
947953967971977983991997

1 is not prime: a prime has exactly two divisors, 1 and itself.

Common use cases

  • Check whether a number under 1,000 is prime
  • Find factors when simplifying fractions
  • Practise for maths tests and puzzles
  • Pick primes for programming exercises

How to use

  1. Look for your number in the table.
  2. If it isn't there and it's under 1,000, it isn't prime.
  3. To factor a number, divide by the primes in order, starting with 2.

FAQ

Is 1 a prime number?

No. A prime must have exactly two different divisors, and 1 has only one. Leaving 1 out also keeps the rule that every whole number factors into primes in only one way.

How do I check if a number is prime?

Divide it by each prime up to its square root. If none divides exactly, it's prime. For 221, check 2, 3, 5, 7, 11 and 13 (√221 ≈ 14.9): 13 × 17 = 221, so it isn't prime.

How many primes are there?

Infinitely many, as Euclid proved over 2,000 years ago. There are 25 below 100, 168 below 1,000 and 78,498 below a million.