OFFSET
1,2
EXAMPLE
a(1) = prime(2^1) - 2*1 = prime(2) - 2 = 3 - 2 = 1;
a(4) = prime(2^4) - 2*4 = prime(16) - 8 = 53 - 8 = 45.
MAPLE
seq(ithprime(2^n)-2*n, n=1..24); # Emeric Deutsch, Aug 27 2008
MATHEMATICA
Table[Prime[2^n]-2n, {n, 30}] (* Harvey P. Dale, Oct 11 2014 *)
PROG
(PARI) a(n) = prime(2^n) - 2*n; \\ Michel Marcus, Mar 25 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jul 31 2008
EXTENSIONS
Corrected and extended by Emeric Deutsch, Aug 27 2008
More terms from Harvey P. Dale, Oct 11 2014
STATUS
approved