OFFSET
0,1
COMMENTS
The first occurrence of 0 in this sequence is as a(16718). - Robert Israel, Dec 28 2022
LINKS
Robert Israel, Table of n, a(n) for n = 0..10000
FORMULA
EXAMPLE
Sum of primes in first interval of one hundred numbers: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97 is equal to first term i.e 1060.
MAPLE
R:= NULL: m:= 0: p:= 0: s:= 0:
while m <= 100 do
p:= nextprime(p);
r:= floor(p/100);
if r = m then
s:= s + p;
else
R:= R, s;
if m < r-1 then R:= R, 0$(r-1-m) fi;
s:= p;
m:= r;
fi
od:
R;
MATHEMATICA
Table[Total@ Select[Range[#, # + 99] &[100 n], PrimeQ], {n, 0, 37}] (* Michael De Vlieger, Sep 01 2016 *)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Bhushan Bade, Aug 31 2016
EXTENSIONS
Definition by Omar E. Pol, Aug 31 2016
STATUS
approved