A136208 Primes p such that p-8 or p+8 is prime.
3, 5, 11, 13, 19, 23, 29, 31, 37, 53, 59, 61, 67, 71, 79, 89, 97, 101, 109, 131, 139, 149, 157, 173, 181, 191, 199, 233, 241, 263, 269, 271, 277, 359, 367, 389, 397, 401, 409, 431, 439, 449, 457, 479, 487, 491, 499, 563, 569, 571, 577, 593, 599, 601, 607, 653
Offset: 1
Keywords
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
Select[Prime[Range[150]], PrimeQ[ # - 8] || PrimeQ[ # + 8] &] (* Stefan Steinerberger, Dec 22 2007 *) Select[Prime[Range[150]],AnyTrue[#+{8,-8},PrimeQ]&] (* Harvey P. Dale, Jul 12 2022 *)
Extensions
More terms from Stefan Steinerberger, Dec 22 2007