A303937 Numbers k such that k!-1 reversed is a prime.
3, 5, 19, 254, 266
Offset: 1
Examples
5 is in the sequence because 5!-1 reversed is 911, which is prime.
Programs
-
Mathematica
ParallelTable[If[PrimeQ[IntegerReverse[Factorial[k]-1]],k,Nothing],{k,1,5703}]//.{}->Nothing (* J.W.L. (Jan) Eerland, Aug 08 2022 *)
-
PARI
isok(n) = isprime(fromdigits(Vecrev(digits(n!-1))));
Comments