OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
2nd prime to 3rd prime are 3, 5, hence a(2) = 8; 3rd prime to 5th prime are 5, 7, 11, hence a(3) = 14; 4th prime to 7th prime are 7, 11, 13, 17, hence a(4) = 21.
MATHEMATICA
Module[{nn=60, pr}, pr=Prime[Range[2nn-1]]; Table[Total[Flatten[ IntegerDigits/@ Take[pr, {n, 2n-1}]]], {n, nn}]] (* Harvey P. Dale, Jul 13 2015 *)
PROG
(Magma) [ &+[ &+Intseq(NthPrime(k), 10): k in [n..2*n-1] ]: n in [1..55] ]; // Klaus Brockhaus, Jun 13 2009
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Juri-Stepan Gerasimov, Jun 10 2009
EXTENSIONS
Edited and extended by Klaus Brockhaus, Jun 13 2009
STATUS
approved