OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Harvey P. Dale)
MATHEMATICA
Module[{nn=300, prs}, prs=Accumulate[Prime[Range[nn]]]; Select[Range[ nn], Divisible[prs[[#]], 4]&]] (* Harvey P. Dale, May 27 2012 *)
PROG
(PARI) lista(pmax) = {my(s = 0, k = 0); forprime(p = 2, pmax, k++; s += p; if(!(s % 4), print1(k, ", "))); } \\ Amiram Eldar, May 14 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 05 2005
STATUS
approved