OFFSET
1,2
MATHEMATICA
Accumulate[Table[If[PrimeQ[6 n-1], 1, 0], {n, 100}]] (* Harvey P. Dale, Dec 27 2022 *)
PROG
(PARI) ism(n) = isprime(6*n-1); \\ A167020
a(n) = sum(k=1, n, ism(k)); \\ Michel Marcus, Feb 06 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jan 25 2010
EXTENSIONS
Entries checked by R. J. Mathar, Apr 14 2010
STATUS
approved