OFFSET
1,1
EXAMPLE
a(1)=7 because pi(1,4)=2 and pi(4,7)=2.
PROG
(PARI) pi(m, n)=local(i, pic); pic=0; forprime (i=m, n, pic++); pic;
for (x=1, 500, xc=0; px=pi(x^2, (x+1)^2); forprime (y=(x+1)^2, 100000, xc++; if (xc==px, print1(y, ", "); break)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Jun 14 2002
EXTENSIONS
Title clarified and offset corrected by Sean A. Irvine, Aug 21 2024
STATUS
approved