OFFSET
1,3
COMMENTS
a(n) = n-1 iff a(n) is in A035346 for n > 1.
FORMULA
a(n) < n.
PROG
(PARI) a(n) = {my(k=1); while(k, if(ispseudoprime(prod(i=1, n-k, prime(i)) + prime(n)), return(n-k)); k++)}
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Dec 01 2015
STATUS
approved