OFFSET
1,1
COMMENTS
LINKS
Chris Boyd, Table of n, a(n) for n = 1..10000
EXAMPLE
a(11) = 37 because 37 > (31 + 41)/2 = 36.
a(12) = 40 because 40 > (37 + 41)/2 = 37.
MATHEMATICA
Select[Range@ 162, # > (Abs@ NextPrime[#, -1] + NextPrime@ #)/2 &] (* Michael De Vlieger, Nov 22 2015 *)
PROG
(PARI) test(n)= {if(n-precprime(n-1)>nextprime(n+1)-n&&n>2, return(1), return(0))}
for(i=1, 200, if(test(i), print1(i, ", ")))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Chris Boyd, Nov 21 2015
STATUS
approved