OFFSET
0
COMMENTS
The parity of pi(n) is obtained without calculating pi(n), and much more quickly. See the paper below.
LINKS
Henri Lifchitz, Parity of pi(n)
EXAMPLE
a(4) = pi(5^4) mod 2 = 114 mod 2 = 0.
MATHEMATICA
Table[Mod[PrimePi[5^n], 2], {n, 10}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Henri Lifchitz, Nov 14 2012
STATUS
approved