OFFSET
1,1
LINKS
Jens Kruse Andersen, Table of n, a(n) for n = 1..10000
EXAMPLE
5 + 2! = 7 and 5 - 2! = 3 are both prime. Thus 5 is a member of this sequence.
PROG
(PARI)
a(n)=for(k=1, n, if(ispseudoprime(n+k!)&&ispseudoprime(n-k!), return(k)))
n=1; while(n<500, if(a(n), print1(n, ", ")); n++)
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Aug 12 2014
STATUS
approved