List of prime numbers
Choose a range of up to 10,000 numbers, anywhere below one trillion. The 25 primes below 100 are shown first.
The prime numbers from 1 to 100
There are 25 primes below 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, 97
The number 1 is not on the list: a prime must have exactly two divisors, and 1 has only one (Prime numbers). 2 is the only even prime, since every other even number is divisible by 2. Every number from 2 to 100 that is not listed is composite, and has a prime factor of 2, 3, 5 or 7 (the primes up to √100 = 10).
The 168 primes below 1000
The count of primes in each hundred falls from 25 (1 to 100) to 21, 16, 16, 17, 14, 16, 14, 15 and 14 (901 to 1000). Primes thin out slowly as numbers grow: near x, about one number in ln x is prime[1].
| 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 |
| 547 | 557 | 563 | 569 | 571 | 577 | 587 | 593 | 599 | 601 |
| 607 | 613 | 617 | 619 | 631 | 641 | 643 | 647 | 653 | 659 |
| 661 | 673 | 677 | 683 | 691 | 701 | 709 | 719 | 727 | 733 |
| 739 | 743 | 751 | 757 | 761 | 769 | 773 | 787 | 797 | 809 |
| 811 | 821 | 823 | 827 | 829 | 839 | 853 | 857 | 859 | 863 |
| 877 | 881 | 883 | 887 | 907 | 911 | 919 | 929 | 937 | 941 |
| 947 | 953 | 967 | 971 | 977 | 983 | 991 | 997 |
How the list is made
The tool uses a segmented sieve of Eratosthenes[1]. To list the primes from a to b, it first finds every prime up to √b (at most one million, since b is at most 1012), then crosses out their multiples inside the window, starting each prime p at the first multiple that is at least a and at least p2. Whatever is left in the window is prime. Every whole number in the window is examined, so the list is exact and complete. The window is limited to 10,000 numbers so that the table stays readable and the page stays quick; the arithmetic itself is exact well beyond that.
Two checks you can make: there are exactly 168 primes below 1000 and 78,498 below one million[2]. The ranges just above a million and just below a trillion show how much sparser primes are up there: about one number in 14 near a million, and one in 28 near a trillion.
Sources
- (2008). A Computational Introduction to Number Theory and Algebra, 2nd edition (Version 2, free PDF). Cambridge University Press. ISBN 9780521516440. textbook
- (2025). A006880: Number of primes < 10^n (π(10^n)). The On-Line Encyclopedia of Integer Sequences. database