OFFSET
0,2
MAPLE
P:=proc(n) local i, k, s; k:=1; s:=0; for i from 0 by 1 to n do if isprime(i) then if k=1 then k:=0; else k:=1; fi; fi; s:=s+k; print(s); od; end: P(100);
PROG
(PARI) a(n) = sum(m=0, n, (primepi(m) % 2) == 0) \\ Michel Marcus, Aug 15 2023
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, Jul 18 2007
STATUS
approved