A262098 Primes p such that 2^p + 9 is also prime.
2, 3, 5, 7, 23, 37, 47, 263, 317, 3229, 3253
Offset: 1
Examples
5 is in sequence because 2^5 + 9 = 41 is prime.
Crossrefs
Programs
-
Magma
[p: p in PrimesUpTo(1000) | IsPrime(2^p+9)];
-
Mathematica
Select[Prime[Range[1000]], PrimeQ[2^# + 9] &]
-
PARI
for(n=1, 1e3, if(isprime((2^prime(n))+9), print1(prime(n)", "))) \\ Altug Alkan, Sep 18 2015
-
Perl
use ntheory ":all"; use Math::GMP qw/:constant/; forprimes { say if is_prime(2**$+9) } 10000; # _Dana Jacobsen, Oct 03 2015
Comments