login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A303937
Numbers k such that k!-1 reversed is a prime.
0
3, 5, 19, 254, 266
OFFSET
1,1
COMMENTS
If it exists, a(6) > 3000. - Jon E. Schoenfield, May 04 2018
If it exists, a(6) > 5703. - J.W.L. (Jan) Eerland, Aug 08 2022
If it exists, a(6) > 10142. - J.W.L. (Jan) Eerland, Aug 14 2022
If it exists, a(6) > 15000. - J.W.L. (Jan) Eerland, Oct 16 2022
If it exists, a(6) > 17506. - J.W.L. (Jan) Eerland, Nov 26 2022
If it exists, a(6) > 35000. - Michael S. Branicky, Dec 16 2024
EXAMPLE
5 is in the sequence because 5!-1 reversed is 911, which is prime.
MATHEMATICA
ParallelTable[If[PrimeQ[IntegerReverse[Factorial[k]-1]], k, Nothing], {k, 1, 5703}]//.{}->Nothing (* J.W.L. (Jan) Eerland, Aug 08 2022 *)
PROG
(PARI) isok(n) = isprime(fromdigits(Vecrev(digits(n!-1))));
CROSSREFS
Sequence in context: A201108 A291920 A172058 * A062577 A144743 A379428
KEYWORD
nonn,base,more
AUTHOR
Paolo Galliani, May 03 2018
STATUS
approved