OFFSET
1,1
FORMULA
EXAMPLE
The first twin primes that are not adjacent to twin primes other than their own twins are 29,31 (23 and 37 are non-twin) and 41,43 (37 and 47 are non-twin). So the sequence begins 29,31,41,43.
MATHEMATICA
a069453[n_] := Module[{c6p={3, 5, 7, 11, 13, 17}, seq={}, i=6, last=17}, While[i<=n, If[c6p[[4]]-c6p[[3]]==2 && c6p[[2]]-c6p[[1]]>2 && c6p[[6]]-c6p[[5]]>2, AppendTo[seq, {c6p[[3]], c6p[[4]]}]]; last=NextPrime[last]; c6p=Append[Drop[c6p, 1], last]; i++]; seq]
Flatten[a069453[1000]] (* isolated prime pairs less than 1000 *)
(* Hartmut F. W. Hoft, Apr 09 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Neil Fernandez, Mar 22 2002
STATUS
approved