OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Ping Ngai Chung and Shiyu Li, On the residue classes of π(n) modulo t, INTEGERS: Electronic Journal of Combinatorial Number Theory 13 (2013), A79.
FORMULA
Chang & Li show that a(n) < 64n + o(1), and a(n) < 8n + o(1) under the Hardy-Littlewood prime tuples conjecture. - Charles R Greathouse IV, Dec 19 2014
MATHEMATICA
Position[Accumulate[Table[If[PrimeQ[n], 1, 0], {n, 150}]], _?OddQ]//Flatten (* Harvey P. Dale, Jan 30 2019 *)
PROG
(PARI) is(n)=primepi(n)%2 \\ Charles R Greathouse IV, Dec 19 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 07 2000
STATUS
approved