OFFSET
2,1
COMMENTS
a(n) separates the primes <= n in two sets {q<=a(n)} and {q<a(n)<=n} which differ in size by not more than 1.
EXAMPLE
Primes <= 20: {2,3,5,7,11,13,17,19}, therefore pi(20)=8 and from 8<=pi(7)*2=4*2 follows a(20)=7.
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Apr 18 2002
STATUS
approved