Generate the first 30 numbers
Define a prime number:
A number with 2 factors: 1 and itself
2
0 + 2 = 2
3
2 + 3 = 5
5
5 + 5 = 10
7
10 + 7 = 17
11
17 + 11 = 28
13
28 + 13 = 41
17
41 + 17 = 58
19
58 + 19 = 77
23
77 + 23 = 100
29
100 + 29 = 129
31
129 + 31 = 160
37
160 + 37 = 197
41
197 + 41 = 238
43
238 + 43 = 281
47
281 + 47 = 328
53
328 + 53 = 381
59
381 + 59 = 440
61
440 + 61 = 501
67
501 + 67 = 568
71
568 + 71 = 639
73
639 + 73 = 712
79
712 + 79 = 791
83
791 + 83 = 874
89
874 + 89 = 963
97
963 + 97 = 1,060
101
1,060 + 101 = 1,161
103
1,161 + 103 = 1,264
107
1,264 + 107 = 1,371
109
1,371 + 109 = 1,480
113
1,480 + 113 = 1,593