login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Three-times-isolated primes: primes p such that neither p+-2, p+-4 nor p+-6 is prime.
2

%I #6 May 16 2019 15:37:37

%S 2,211,293,409,479,631,691,701,709,719,787,797,839,919,929,1163,1171,

%T 1201,1249,1259,1381,1399,1409,1471,1511,1523,1531,1637,1709,1733,

%U 1801,1811,1823,1831,1847,1889,2039,2053,2099,2153,2161,2179,2221,2251,2459

%N Three-times-isolated primes: primes p such that neither p+-2, p+-4 nor p+-6 is prime.

%C 2 together with prime numbers, isolated from neighboring primes by>6.

%H Harvey P. Dale, <a href="/A167833/b167833.txt">Table of n, a(n) for n = 1..2500</a>

%e a(1)=2 (-4,-2,0,4,6,8 are nonprimes); a(2)=211 (205,207,209,213,215,217 are nonprimes).

%t Join[{2},Select[Prime[Range[400]],NoneTrue[#+{2,4,6,-2,-4,-6},PrimeQ]&]] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, May 16 2019 *)

%Y Cf. A137870, A167771.

%K nonn

%O 1,1

%A _Juri-Stepan Gerasimov_, Nov 13 2009