A087682 Numbers n such that n + 8 and n - 8 are both prime.
11, 15, 21, 39, 45, 51, 75, 81, 105, 159, 165, 171, 189, 219, 231, 249, 285, 339, 345, 375, 381, 441, 471, 495, 549, 555, 579, 585, 609, 639, 651, 669, 735, 765, 819, 831, 945, 975, 1005, 1041, 1095, 1101, 1179, 1209, 1221, 1299, 1311, 1431, 1479, 1491
Offset: 1
Links
- Daniel Starodubtsev, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
f[n_]:=PrimeQ[n-8]&&PrimeQ[n+8]; lst={};Do[If[f[n],AppendTo[lst,n]],{n,7,8!,2}];lst (* Vladimir Joseph Stephan Orlovsky, Oct 09 2009 *)
Extensions
More terms from Ray Chandler, Oct 26 2003