OFFSET
1,1
EXAMPLE
4*4! + 1 = 97, a prime.
MATHEMATICA
lst={}; Do[p=4*n!+1; If[PrimeQ[p], AppendTo[lst, p]], {n, 0, 5!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jan 28 2009 *)
Select[(4Range[60]!+1), PrimeQ] (* Harvey P. Dale, May 08 2024 *)
PROG
(PARI) for(n=1, 55, if(isprime(4*n!+1), print(4*n!+1)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, Jul 10 2001
STATUS
approved