OFFSET
1,3
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Range[0, 400], PrimeQ[Total[IntegerDigits[#!]]+1]&] (* Harvey P. Dale, Jan 27 2023 *)
PROG
(PARI) SumD(x)= { local(s=0); while (x>9, s+=x%10; x\=10); return(s + x) } { n=0; for (m=0, 10^9, if (isprime(SumD(m! + 1)), write("b066347.txt", n++, " ", m); if (n==1000, return)) ) } \\ Harry J. Smith, Feb 11 2010
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Jason Earls, Dec 19 2001
EXTENSIONS
Definition clarified by Harvey P. Dale, Jan 27 2023
STATUS
approved