OFFSET
1,1
COMMENTS
2*3=6;3-2=1;6+1=7, 2*5=10;5-2=3;10-3=7,..
MATHEMATICA
lst={}; Do[pa=Prime[a]; Do[pb=Prime[b]; sp=pa*pb; dp=Abs[pa-pb]; If[PrimeQ[sp-dp]&&PrimeQ[sp+dp], AppendTo[lst, sp-dp]], {b, a+1, 6!}], {a, 6!}]; lst1=Union@lst; lst={}; Do[pa=Prime[a]; Do[pb=Prime[b]; sp=pa*pb; dp=Abs[pa-pb]; If[PrimeQ[sp-dp]&&PrimeQ[sp+dp], AppendTo[lst, sp+dp]], {b, a+1, 6!}], {a, 6!}]; lst2=Union@lst; Intersection[lst1, lst2]
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Mar 31 2010
STATUS
approved