%I #4 Mar 31 2012 13:21:55
%S 3,5,7,13,17,71
%N Primes of the form p(n)*p(n+1)+[p(n)-1]!.
%e Let p(n) be 5, therefore p(n+1)=7 and p(n)*p(n+1)=35. [p(n)-1)]!=4!=24. 35+24=59, which is prime.
%o (PARI) forprime (p=3,1000,if (isprime(p*nextprime(p+1)+(p-1)!),print1(p",")))
%K nonn
%O 1,1
%A _Jon Perry_, Jan 16 2003
|