OFFSET
1,29
COMMENTS
Partial sums of A185709.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
A. Granville and G. Martin, Prime number races, arXiv:math/0408319 [math.NT], 2004.
A. Granville and G. Martin, Prime number races, Amer. Math. Monthly, 113 (No. 1, 2006), 1-33.
MATHEMATICA
Accumulate[Table[If[PrimeQ[n] && Mod[n, 10] == 9, 1, 0], {n, 50}]] (* G. C. Greubel, Jul 10 2017 *)
PROG
(PARI) a(n) = sum(k=1, n, if ((k % 10)==9, isprime(k))); \\ Michel Marcus, Jul 11 2017
CROSSREFS
KEYWORD
base,nonn
AUTHOR
N. J. A. Sloane, Feb 10 2011
STATUS
approved