OFFSET
1,2
COMMENTS
Differs from A120225 in the first term.
EXAMPLE
a(3)=4 because 3+4=7 and 3*4+1=13 are prime;
a(8)=9 because 8+9=17 and 8*9+1=73 are prime,
MATHEMATICA
Reap[Do[Do[If[PrimeQ[{n+x, n*x+1}]=={True, True}, Sow[x]; Break[]], {x, n, 1000}], {n, 120}]][[2, 1]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Jun 10 2006
STATUS
approved