OFFSET
1,5
MAPLE
A139789 := proc(n) local a, i; a := 0 ; for i from 1 to n-1 do if isprime(ithprime(i)+4) then a :=a +1 ; fi; od: a ; end: for n from 1 to 100 do printf("%d, ", A139789(n)) ; od: # R. J. Mathar, Oct 05 2008
MATHEMATICA
Join[{0}, Accumulate[Table[If[PrimeQ[n+4], 1, 0], {n, Prime[Range[80]]}]]] (* Harvey P. Dale, Jan 25 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Giovanni Teofilatto, May 21 2008
EXTENSIONS
0 added in front, some 6's added and extended by R. J. Mathar, Oct 05 2008
STATUS
approved