OFFSET
1,1
COMMENTS
Entries may be repeated and are shown in order of increasing generator n.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
If n=20, then (20/2+p(20-1)-p(20))/2=(10+67-71)/2=3=a(1).
If n=24, then (24/2+p(24-1)-p(24))/2=(12+83-89)/2=3=a(2).
If n=28, then (28/2+p(28-1)-p(28))/2=(14+103-107)/2=5=a(3).
If n=40, then (40/2+p(40-1)-p(40))/2=(20+167-173)/2=7=a(4).
MATHEMATICA
Select[Table[(n/2+Prime[n-1]-Prime[n])/2, {n, 4, 2000, 4}], PrimeQ] (* Harvey P. Dale, Nov 14 2020 *)
CROSSREFS
KEYWORD
nonn,less
AUTHOR
Juri-Stepan Gerasimov, Sep 16 2008
EXTENSIONS
Corrected and extended by R. J. Mathar, Sep 26 2008
STATUS
approved