WordGPT

Prime numbers between 1 and 20,000

There are 2,262 prime numbers between 1 and 20,000: 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, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, … 19927, 19937, 19949, 19961, 19963, 19973, 19979, 19991, 19993, 19997.

How to work it out

  1. 1

    A prime has exactly two factors, 1 and itself. To list them, cross out multiples of 2, then 3, then 5, and so on up to √20000 ā‰ˆ 141.4 (the sieve of Eratosthenes). What is left are the primes.

  2. 2

    That leaves 2262 primes between 1 and 20,000, with a total of 21,171,191.

  3. 3

    The biggest gap between neighbouring primes in this range is 52, after 19609 (the next prime is 19661). There are 342 twin prime pairs (primes 2 apart), the first ones (3, 5), (5, 7), (11, 13), (17, 19), (29, 31), (41, 43), (59, 61), (71, 73).

How many primes in each part

RangePrimesShare of the numbers
1 to 10,000122912.3%
10,001 to 20,000103310.3%

Questions

How many prime numbers are there between 1 and 20,000?

2262.

What is the biggest prime number below 20,000?

19997.

What is the first prime number after 0?

2.

Other ranges

Single primes

    Prime numbers between 1 and 20,000: the full list (2262) | WordGPT