The first million primes
Introduction
codeguppy.com recommends exploring math and science concepts with code. One of the projects that you can find on our site is generating prime numbers. We have several program about prime numbers in the math section.
We recommend you explore those and eventually use them in the classroom.
The first million primes
However, in this article, we will not focus on the code, but instead we will offer for download the list of the first million prime numbers.
We will list below just a few prime numbers (from start and end of this list), but the entire list is too big to be listed on the page, therefore we will provide it as a 📎 downloadable .zip archive.
#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
...
#999901 15484279
#999902 15484333
#999903 15484363
#999904 15484387
#999905 15484393
#999906 15484409
#999907 15484421
#999908 15484453
#999909 15484457
#999910 15484459
#999911 15484471
#999912 15484489
#999913 15484517
#999914 15484519
#999915 15484549
#999916 15484559
#999917 15484591
#999918 15484627
#999919 15484631
#999920 15484643
#999921 15484661
#999922 15484697
#999923 15484709
#999924 15484723
#999925 15484769
#999926 15484771
#999927 15484783
#999928 15484817
#999929 15484823
#999930 15484873
#999931 15484877
#999932 15484879
#999933 15484901
#999934 15484919
#999935 15484939
#999936 15484951
#999937 15484961
#999938 15484999
#999939 15485039
#999940 15485053
#999941 15485059
#999942 15485077
#999943 15485083
#999944 15485143
#999945 15485161
#999946 15485179
#999947 15485191
#999948 15485221
#999949 15485243
#999950 15485251
#999951 15485257
#999952 15485273
#999953 15485287
#999954 15485291
#999955 15485293
#999956 15485299
#999957 15485311
#999958 15485321
#999959 15485339
#999960 15485341
#999961 15485357
#999962 15485363
#999963 15485383
#999964 15485389
#999965 15485401
#999966 15485411
#999967 15485429
#999968 15485441
#999969 15485447
#999970 15485471
#999971 15485473
#999972 15485497
#999973 15485537
#999974 15485539
#999975 15485543
#999976 15485549
#999977 15485557
#999978 15485567
#999979 15485581
#999980 15485609
#999981 15485611
#999982 15485621
#999983 15485651
#999984 15485653
#999985 15485669
#999986 15485677
#999987 15485689
#999988 15485711
#999989 15485737
#999990 15485747
#999991 15485761
#999992 15485773
#999993 15485783
#999994 15485801
#999995 15485807
#999996 15485837
#999997 15485843
#999998 15485849
#999999 15485857
#1000000 15485863
Next steps
If you need more prime numbers, feel free to extend this project from the Math section to generate the desired list.
Read more blog articles Browse JavaScript projectsAbout codeguppy
CodeGuppy is a FREE coding platform for schools and independent learners. If you don't have yet an account with codeguppy.com, you can start by visiting the registration page and sign-up for a free account. Registered users can access tons of fun projects!
Follow @codeguppy on Twitter for coding tips and news about codeguppy platform. For more information, please feel free to contact us.