Prime numbers list

All primes up to 10,000.

From to 168 primes
  1. 2
  2. 3
  3. 5
  4. 7
  5. 11
  6. 13
  7. 17
  8. 19
  9. 23
  10. 29
  11. 31
  12. 37
  13. 41
  14. 43
  15. 47
  16. 53
  17. 59
  18. 61
  19. 67
  20. 71
  21. 73
  22. 79
  23. 83
  24. 89
  25. 97
  26. 101
  27. 103
  28. 107
  29. 109
  30. 113
  31. 127
  32. 131
  33. 137
  34. 139
  35. 149
  36. 151
  37. 157
  38. 163
  39. 167
  40. 173
  41. 179
  42. 181
  43. 191
  44. 193
  45. 197
  46. 199
  47. 211
  48. 223
  49. 227
  50. 229
  51. 233
  52. 239
  53. 241
  54. 251
  55. 257
  56. 263
  57. 269
  58. 271
  59. 277
  60. 281
  61. 283
  62. 293
  63. 307
  64. 311
  65. 313
  66. 317
  67. 331
  68. 337
  69. 347
  70. 349
  71. 353
  72. 359
  73. 367
  74. 373
  75. 379
  76. 383
  77. 389
  78. 397
  79. 401
  80. 409
  81. 419
  82. 421
  83. 431
  84. 433
  85. 439
  86. 443
  87. 449
  88. 457
  89. 461
  90. 463
  91. 467
  92. 479
  93. 487
  94. 491
  95. 499
  96. 503
  97. 509
  98. 521
  99. 523
  100. 541
  101. 547
  102. 557
  103. 563
  104. 569
  105. 571
  106. 577
  107. 587
  108. 593
  109. 599
  110. 601
  111. 607
  112. 613
  113. 617
  114. 619
  115. 631
  116. 641
  117. 643
  118. 647
  119. 653
  120. 659
  121. 661
  122. 673
  123. 677
  124. 683
  125. 691
  126. 701
  127. 709
  128. 719
  129. 727
  130. 733
  131. 739
  132. 743
  133. 751
  134. 757
  135. 761
  136. 769
  137. 773
  138. 787
  139. 797
  140. 809
  141. 811
  142. 821
  143. 823
  144. 827
  145. 829
  146. 839
  147. 853
  148. 857
  149. 859
  150. 863
  151. 877
  152. 881
  153. 883
  154. 887
  155. 907
  156. 911
  157. 919
  158. 929
  159. 937
  160. 941
  161. 947
  162. 953
  163. 967
  164. 971
  165. 977
  166. 983
  167. 991
  168. 997

Pick a range, then copy the whole list with one click.

Runs in your browser. Nothing uploaded.

How to use the prime numbers list

  1. Choose Up to 100, Up to 1,000 or Up to 10,000, or type your own range in From and to, such as 500 to 600. The number of primes in the range shows next to it.
  2. Read the primes in order, starting from 2.
  3. Press Copy list to copy every prime shown, separated by commas, ready for a spreadsheet or code.

How the list is made: the sieve of Eratosthenes

The list on this page is built with a method that is over 2,000 years old. To find every prime up to 100:

  1. Write down the numbers from 2 to 100.
  2. The first number, 2, is prime. Cross out every multiple of 2 after it: 4, 6, 8 and so on.
  3. The next number that isn’t crossed out, 3, is prime. Cross out its multiples, starting from 9, since smaller ones like 6 are already gone.
  4. Repeat with 5 (start at 25) and 7 (start at 49).
  5. Stop once the next prime squared is bigger than 100. 11 × 11 is 121, so you’re done, and every number left is prime.

It’s fast because each number is crossed out only by its own prime factors, with no division needed. To test one number, or to see the factors of one that isn’t prime, use the prime number checker.

Patterns in the list

  • 1 isn’t prime. A prime has exactly two divisors, 1 and itself, and 1 has only one. Leaving it out also means every whole number splits into primes in exactly one way.
  • After 5, every prime ends in 1, 3, 7 or 9. Anything ending in 0, 2, 4, 6 or 8 is even, and anything ending in 5 divides by 5.
  • After 3, every prime is one more or one less than a multiple of 6, like 29 (30 − 1) and 31 (30 + 1). The reverse isn’t true: 25 is next to 24 but isn’t prime.
  • Primes thin out as numbers grow. A quarter of the numbers up to 100 are prime, but only about one in six up to 1,000 and one in eight up to 10,000.