OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1)=2 because 2 in range (2-sqrt(2), 2] and 3 in range (2, 2+sqrt(2)],
a(2)=11 because 7 in range (11-sqrt(11), 11] and 13 in range (11, 11+sqrt(11)].
MATHEMATICA
npeQ[p_]:=Module[{p1=PrimePi[p], p2=PrimePi[p-Sqrt[p]], p3=PrimePi[p+Sqrt[p]]}, p3-p1 == p1-p2]; Select[Prime[Range[400]], npeQ] (* Harvey P. Dale, Jan 31 2024 *)
PROG
(PARI) is(p)=2*primepi(p)==primepi(p+sqrt(p))+primepi(p-sqrt(p))
select(isA192361, primes(1000)) \\ Charles R Greathouse IV, Jun 29 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jun 28 2011
EXTENSIONS
Missing terms a(3) and a(7) inserted, a(19)-a(57) added by Charles R Greathouse IV, Jun 29 2011
STATUS
approved