OFFSET
2,3
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 2..10000
EXAMPLE
a(2) = 1 because 7 is the greatest prime < 3^2 and 5 is the least prime > 2^2. (7-5)/2 = 1.
PROG
(PARI) for(n=2, 69, print1((precprime((n+1)^2)-nextprime(n^2))/2, ", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Jan 27 2020
STATUS
approved