OFFSET
1,23
MATHEMATICA
Table[If[PrimeQ[n]&&Mod[n, 8]==7, 1, 0], {n, 120}]//Accumulate (* Harvey P. Dale, Feb 11 2018 *)
PROG
(PARI) for(n=1, 200, print1(sum(i=1, n, if((i*isprime(i)-7)%8, 0, 1)), ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Jun 08 2002
STATUS
approved