OFFSET
2,1
COMMENTS
n=1 is a degenerate case because prime(1)=2, (prime(n)+1)/2 = 3/2 and there is no prime(3/2).
EXAMPLE
a(5)=13 because prime((prime(5)+1)/2) = prime((11+1)/2) = prime(6) = 13;
a(7)=23 because prime((prime(7)+1)/2) = prime((17+1)/2) = prime(9) = 23.
MATHEMATICA
Table[Prime[(Prime[n]+1)/2], {n, 2, 50}]
PROG
(PARI) vector(100, n, prime((prime(n+1)+1)/2)) \\ Derek Orr, Mar 29 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Feb 28 2005
STATUS
approved