

A051855


Numbers n such that (n!)^4+1 is prime.


2




OFFSET

1,3


LINKS

Table of n, a(n) for n=1..9.
C. K. Caldwell, The Prime Pages
C. Nash, Prime Form [?Broken link]


MATHEMATICA

Select[Range[0, 350], PrimeQ[(#!)^4 + 1]&] (* Vincenzo Librandi, Aug 15 2013 *)


PROG

(PARI) isok(n) = isprime(n!^4 + 1); \\ Michel Marcus, Aug 15 2013
(MAGMA) [n: n in [1..300]  IsPrime(Factorial(n)^4+1)]; // Vincenzo Librandi, Aug 15 2013


CROSSREFS

Cf. A002981, A002982, A046029.
Sequence in context: A295755 A089142 A123215 * A058070 A151413 A031241
Adjacent sequences: A051852 A051853 A051854 * A051856 A051857 A051858


KEYWORD

nonn


AUTHOR

Andrew Walker (ajw01(AT)uow.edu.au), Dec 13 1999


EXTENSIONS

a(9) from Robert Price, Jul 24 2014
Prepended a(1)=0, Robert Price, Sep 01 2014


STATUS

approved



