login
A066347
Numbers k such that (the sum of digits of k!)+1 is a prime.
1
0, 1, 2, 3, 4, 11, 22, 25, 27, 29, 32, 38, 43, 51, 57, 62, 72, 74, 75, 77, 81, 83, 92, 102, 117, 118, 122, 128, 143, 148, 151, 152, 154, 165, 177, 186, 188, 191, 193, 196, 205, 209, 210, 213, 221, 227, 230, 234, 235, 247, 262, 274, 282, 298, 300, 301, 307, 310
OFFSET
1,3
LINKS
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
Sequence in context: A297180 A162969 A104109 * A367807 A118596 A139763
KEYWORD
base,nonn
AUTHOR
Jason Earls, Dec 19 2001
EXTENSIONS
Definition clarified by Harvey P. Dale, Jan 27 2023
STATUS
approved