OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
35 = 5*7 is a term since 5 + 7 +- 1 are twin primes.
MATHEMATICA
l[n_]:=Last/@FactorInteger[n]; f[n_]:=First/@FactorInteger[n]; lst={}; Do[If[l[n]=={1, 1}, a=f[n][[1]]; b=f[n][[2]]; If[PrimeQ[a+b-1]&&PrimeQ[a+b+1], AppendTo[lst, n]]], {n, 0, 7!}]; lst
With[{nn=100}, Take[Union[Times@@@Select[Subsets[Prime[Range[nn]], {2}], AllTrue[Total[#]+{1, -1}, PrimeQ]&]], nn/2]] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, May 09 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 27 2010
STATUS
approved