OFFSET
1,1
COMMENTS
Primes of the form k! + A005165(k - 1).
EXAMPLE
139 is in the sequence because it is 5! + (4! - 3! + 2! - 1!).
PROG
(PARI) \\ here b(n) is n! + A005165(n-1).
b(n) = {n! - sum(i=1, n-1, (-1)^(n-i)*i!)}
{ for(k=1, 150, if(ispseudoprime(b(k)), print1(b(k), ", "))) } \\ Andrew Howroyd, Mar 12 2023
CROSSREFS
KEYWORD
hard,nonn
AUTHOR
Jack Braxton, Mar 11 2023
STATUS
approved