OFFSET
1,1
COMMENTS
For k > 4, the last digits of the prime numbers are of the form 999, 999, 99999, 999999,...,...99999.
EXAMPLE
191 is in the sequence because, for k = 4, 4!*4!! - 1 = 24*8 - 1 = 191.
MATHEMATICA
a={}; Do[p=n!*n!!-1; If[PrimeQ[p], AppendTo[a, p]], {n, 10^3}]; Print[a];
PROG
(Magma) a:=func< n | Factorial(n)*(&*[n..2 by -2])-1 >; [ a(n): n in [0..78] | IsPrime(a(n)) ]; // Bruno Berselli, Dec 19 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Dec 19 2011
STATUS
approved