login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A175235 Prime p such that 2^p + 21 is also prime. 1
3, 5, 7, 11, 19, 61, 163, 911, 997, 16657, 36551 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

a(12) > 100000. - Dana Jacobsen, Oct 03 2015

LINKS

Table of n, a(n) for n=1..11.

FORMULA

A000040 INTERSECT A057201. - R. J. Mathar, May 02 2010

EXAMPLE

For p=3, 2^3+21=29; p=5, 2^5+21=53; p=7, 2^7+21=149.

MATHEMATICA

Select[Prime[Range[10000]], PrimeQ[(2^# + 21)] &] (* Vincenzo Librandi, Oct 04 2015 *)

PROG

(MAGMA) [p: p in PrimesUpTo(4000) | IsPrime(2^p+21) ]

(Perl) use ntheory ":all"; use Math::GMP qw/:constant/; forprimes { my $n = 2**$_+21; say if is_prime($n) } 20000; # Dana Jacobsen, Oct 03 2015

(PARI) is(n)=prime(n)&&prime(2^n+21) \\ Anders Hellström, Oct 03 2015

CROSSREFS

Sequence in context: A056208 A323065 A225421 * A060643 A025077 A186773

Adjacent sequences:  A175232 A175233 A175234 * A175236 A175237 A175238

KEYWORD

nonn,more

AUTHOR

Vincenzo Librandi, Mar 09 2010

EXTENSIONS

a(10)-a(11) from Dana Jacobsen, Oct 03 2015

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 8 08:08 EDT 2020. Contains 335520 sequences. (Running on oeis4.)