OFFSET
1,1
FORMULA
a(n) = prime(a(n-1) + a(n-2)); a(1) = 2; a(2) = 3.
EXAMPLE
a(5) = prime(11 + 43) = prime(54) = 251.
MATHEMATICA
t = {2, 3}; Do[AppendTo[t, Prime[t[[-1]] + t[[-2]]]], {9}]; t (* T. D. Noe, May 09 2013 *)
nxt[{a_, b_}]:={b, Prime[a+b]}; NestList[nxt, {2, 3}, 13][[All, 1]] (* Harvey P. Dale, Jul 18 2020 *)
PROG
(PARI) a(n) = if(n<3, prime(n), prime(a(n-1) + a(n-2)));
vector(10, n, a(n)) \\ Altug Alkan, Oct 02 2015
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Christopher M. Tomaszewski (cmt1288(AT)comcast.net), May 22 2005
EXTENSIONS
Terms a(7)-a(11) corrected by Alex Ratushnyak, May 09 2013
a(12)-a(14) from Amiram Eldar, Feb 03 2019
a(15)-a(17) from Jinyuan Wang, Nov 21 2020
STATUS
approved