OFFSET
1,1
LINKS
Dana Jacobsen, Table of n, a(n) for n = 1..10727
FORMULA
EXAMPLE
The prime 7 is in the sequence because 7+16 = 23, 7+64 = 71, 7+256 = 263 and 7+1024 = 1031 are all primes.
The prime 37 is in the sequence because 37+16 = 53, 37+64 = 101, 37+256 = 293 and 37+1024 = 1061 are all primes.
MATHEMATICA
Select[Prime@ Range[10^5], Times @@ Boole@ PrimeQ[# + 2^{4, 6, 8, 10}] == 1 &] (* Michael De Vlieger, Jul 13 2016 *)
PROG
(Perl) use ntheory ":all"; say for sieve_prime_cluster(2, 1e5, 16, 64, 256, 1024); # Dana Jacobsen, Jul 13 2016
(Magma) [p: p in PrimesInInterval(2, 200000) | forall{i: i in [16, 64, 256, 1024] | IsPrime(p+i)}]; // Vincenzo Librandi, Jul 16 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Debapriyay Mukhopadhyay, Jul 12 2016
STATUS
approved