A048598 Partial sums of the sequence (A001097) of twin primes.
3, 8, 15, 26, 39, 56, 75, 104, 135, 176, 219, 278, 339, 410, 483, 584, 687, 794, 903, 1040, 1179, 1328, 1479, 1658, 1839, 2030, 2223, 2420, 2619, 2846, 3075, 3314, 3555, 3824, 4095, 4376, 4659, 4970, 5283, 5630, 5979, 6398, 6819, 7250
Offset: 1
Examples
a(5) = 39 because 3 + 5 + 7 + 11 + 13 = 39.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Crossrefs
Cf. A048599.
Programs
-
Mathematica
Accumulate[Union[Flatten[Select[Partition[Prime[Range[100]],2,1],#[[2]] - #[[1]]==2&]]]] (* Harvey P. Dale, Apr 29 2012 *)
Extensions
More terms from Michael Lugo (mlugo(AT)thelabelguy.com), Dec 22 1999