OFFSET
3,2
EXAMPLE
Prime(3)/2 = 2.5, so that a(3) = 3 - 2 = 1.
Prime(4)/2 = 3.5, so that a(4) = 5 - 3 = 2.
MATHEMATICA
PROG
(PARI) a(n) = my(x=prime(n)/2); nextprime(x) - precprime(x); \\ Michel Marcus, Nov 18 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Nov 16 2020
STATUS
approved