OFFSET
1,1
LINKS
G. C. Greubel, Rows n = 1..100 of triangle, flattened
FORMULA
MAPLE
seq(seq( sum(ithprime(n+j-1), j=1..k), k=1..n), n=1..12); # G. C. Greubel, Jan 19 2020
MATHEMATICA
Table[Sum[Prime[n+j-1], {j, k}], {n, 12}, {k, n}]//Flatten (* G. C. Greubel, Jan 19 2020 *)
PROG
(PARI) T(n, k) = sum(j=1, k, prime(n+j-1)); \\ G. C. Greubel, Jan 19 2020
(Magma) [&+[NthPrime(n+j-1): j in [1..k]] : k in [1..n], n in [1..12]]; // G. C. Greubel, Jan 19 2020
(Sage) [[sum(nth_prime(n+j-1) for j in (1..k)) for k in (1..n)] for n in (1..12)] # G. C. Greubel, Jan 19 2020
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Reinhard Zumkeller, Aug 26 2004
STATUS
approved