OFFSET
2,1
COMMENTS
n=1 is a degenerate case because prime(1)=2, (prime(n)-1)/2 = 1/2 and there is no prime(1/2).
FORMULA
a(n) = prime(A005097(n)). - Michel Marcus, Mar 29 2015
EXAMPLE
a(5)=11 because prime((prime(5)-1)/2) = prime((11-1)/2) = prime(5) = 11;
a(7)=19 because prime((prime(7)-1)/2) = prime((17-1)/2) = prime(8) = 19.
MAPLE
seq(ithprime((ithprime(i)-1)/2), i=2..100); # Robert Israel, Mar 29 2015
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