OFFSET
2,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 2..1000
FORMULA
a(n) = prime((prime(n)+1)/2) - prime((prime(n)-1)/2).
MATHEMATICA
Prime[(#+1)/2]-Prime[(#-1)/2]&/@Prime[Range[2, 50]] (* Harvey P. Dale, Mar 09 2022 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Feb 28 2005
STATUS
approved