OFFSET
1,1
COMMENTS
By using Wilson's theorem, we can show that each term of the sequence is composite. - Farideh Firoozbakht, Aug 02 2014
PROG
(PARI)
a(n)=for(k=1, n, s=(k!+n)/k; t=(k!-n)/k; if(floor(s)==s&&floor(t)==t, if(ispseudoprime(s)&&ispseudoprime(t), return(k))))
n=1; while(n<10^3, if(a(n), print1(n, ", ")); n++)
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Aug 01 2014
STATUS
approved
