login
The OEIS is supported by the many generous donors to the OEIS 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
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
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 10 20:32 EDT 2024. Contains 372388 sequences. (Running on oeis4.)