%I #37 Jul 04 2024 03:27:16
%S 2,3,7,39916801,10888869450418352160768000001,
%T 13763753091226345046315979581580902400000001,
%U 33452526613163807108170062053440751665152000000001
%N Primes of the form k! + 1.
%C The next term is too large to include.
%C Of course 2 = 0! + 1 = 1! + 1 has two such representations.
%C Prime numbers that are the sum of two factorial numbers. - _Juri-Stepan Gerasimov_, Nov 08 2010
%H Amiram Eldar, <a href="/A088332/b088332.txt">Table of n, a(n) for n = 1..15</a> (terms 1..11 from T. D. Noe)
%H Romeo Meštrović, <a href="http://arxiv.org/abs/1202.3670">Euclid's theorem on the infinitude of primes: a historical survey of its proofs (300 BC--2012) and another new proof</a>, arXiv preprint arXiv:1202.3670 [math.HO], 2012-2023. - From N. J. A. Sloane, Jun 13 2012
%e 3! + 1 = 7 is prime.
%t lst={};Do[p=n!+1;If[PrimeQ[p],AppendTo[lst,p]],{n,0,3*5!}];lst (* _Vladimir Joseph Stephan Orlovsky_, Jan 27 2009 *)
%o (PARI) factp1prime(n)=for(x=1,n,xf=x!+1; if(isprime(xf),print1(xf",")))
%Y Cf. A002981 (values of k), A038507, A062701.
%K nonn
%O 1,1
%A _Cino Hilliard_, Nov 06 2003