OFFSET
1,1
LINKS
Dana Jacobsen, Table of n, a(n) for n = 1..10801
EXAMPLE
The prime 37 is in the sequence, since 37 + 16 = 53, 37 + 64 = 101, 37 + 256 = 293, 37 + 1024 = 1061, 37 + 4096 = 4133 and 37 + 16384 = 16421 are all primes.
The prime 163 is in the sequence, since 163 + 16 = 179, 163 + 64 = 227, 163 + 256 = 419, 163 + 1024 = 1187, 163 + 4096 = 4259 and 163 + 16384 = 16547 are all primes.
MATHEMATICA
m = Map[2^# &, 2 Range[2, 7]]; Select[Prime@ Range[10^6], Times @@ Boole@ PrimeQ[# + m] == 1 &] (* Michael De Vlieger, Jul 13 2016 *)
PROG
(Perl) use ntheory ":all"; say for sieve_prime_cluster(2, 1e6, 16, 64, 256, 1024, 4096, 16384); # Dana Jacobsen, Jul 13 2016
(Magma) [p: p in PrimesInInterval(2, 12000000) | forall{i: i in [16, 64, 256, 1024, 4096, 16384] | IsPrime(p+i)}]; // Vincenzo Librandi, Jul 16 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Debapriyay Mukhopadhyay, Jul 12 2016
STATUS
approved