Below is an array containing the sum of consecutive prime numbers that's less than 1000. For example, the first entry is simply 2, the second entry, 5, is the sum of 2 and 3, the third entry, 10, is the sum of 2, 3 and 5, and so on and so forth.
[ 2,
5,
10,
17,
28,
41,
58,
77,
100,
129,
160,
197,
238,
281,
328,
381,
440,
501,
568,
639,
712,
791,
874,
963 ]
No comments:
Post a Comment