OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..3775
MAPLE
f:= proc(n) option remember; prevprime(procname(n-1)+procname(n-2)+procname(n-3)) end proc:
f(1):= 2: f(2):= 3: f(3):= 5:
map(f, [$1..100]); # Robert Israel, Mar 12 2018
MATHEMATICA
nxt[{a_, b_, c_}]:={b, c, NextPrime[a+b+c, -1]}; NestList[nxt, {2, 3, 5}, 40][[All, 1]] (* Harvey P. Dale, Jun 09 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Mar 03 2007
STATUS
approved