OFFSET
1,2
REFERENCES
Robert G. Wilson v, personal communication.
LINKS
Harry J. Smith, Table of n, a(n) for n=1..940
MATHEMATICA
a = b = p = s = 0; Do[If[PrimeQ[n], p++ ]; s = s + (-1)^p; If[s > a, a = s; Print[n]], {n, 1, 10^3}]
PROG
(PARI) { n=b=c=0; for (m=1, 10^9, b+=(-1)^primepi(m); if (b>c, c=b; write("b064973.txt", n++, " ", m); if (n==940, return)) ) } \\ Harry J. Smith, Oct 02 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, Oct 31 2001
STATUS
approved