OFFSET
2,1
LINKS
Michael De Vlieger, Table of n, a(n) for n = 2..10000
MATHEMATICA
Array[#3 - (#1 + #2)/2 & @@ Prime[{#, # + 1, # + 2}] &, 80, 2] (* Michael De Vlieger, Jul 30 2024 *)
PROG
(PARI) a(n) = prime(n+2) - (prime(n) + prime(n+1))/2
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Hugo Pfoertner, Jul 30 2024
STATUS
approved