OFFSET
1,1
MATHEMATICA
Do[If[PrimeQ[151*n + 149]&&PrimeQ[149*n + 151], Print[n]], {n, 2000}]
Select[Range[2000], AllTrue[{151#+149, 149#+151}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Aug 12 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Jun 03 2005
STATUS
approved