Skip to main content
MathKit

First 40 Prime Numbers

The first 40 prime numbers. Primes are divisible only by 1 and themselves — they are the building blocks of all integers.

2 is the only even prime — every other even number divides by 2. The widest gap between consecutive neighbors in this list is 14: primes wander further apart as numbers grow, yet never run out — Euclid proved the supply is endless. The list stays tight as well: all 40 of these primes fit inside the range 2 through 173, where they make up about 23.1% of all integers — prime density thins slowly as numbers grow.

The first 40 prime numbers, in order from 2
#Prime
12
23
35
47
511
613
717
819
923
1029
1131
1237
1341
1443
1547
1653
1759
1861
1967
2071
2173
2279
2383
2489
2597
26101
27103
28107
29109
30113
31127
32131
33137
34139
35149
36151
37157
38163
39167
40173

Frequently asked questions

What are the first 40 prime numbers?

The first 40 primes are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29….

What is the 40th prime number?

173 is the 40th prime number.

Why is 1 not a prime number?

A prime must have exactly two distinct factors: 1 and itself. The number 1 has only one factor, so it is not prime (and not composite either).

Related calculators

Related tables