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!)
A100556 Composite numbers q such that 2^q + q is prime. 0
9, 15, 39, 75, 81, 735, 1311, 1881, 3201, 3225, 11795, 88071, 204129, 678561 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Cino Hilliard, Title?. [Dead link]
EXAMPLE
For q = 9, 2^9 + 9 = 521, prime.
Note that 2^11795 + 11795 is prime but 11795 is composite and not divisible by 3.
MATHEMATICA
Do[If[ !PrimeQ[n] && PrimeQ[2^n + n], Print[n]], {n, 2, 10^6}] (* Ryan Propper, Jul 21 2006 *)
nn=15000; Select[Complement[Range[2, nn], Prime[Range[PrimePi[nn]]]], PrimeQ[2^#+#]&] (* Harvey P. Dale, May 05 2011 *)
PROG
(PARI) \ p^q + q is prime q not prime ptoqpq(p, n)= { local(x, y, q); for(q=6, n, if(q%2, if(!isprime(q), y=p^q+q; if(ispseudoprime(y), print(q", "y", ")) ) ) ) }
CROSSREFS
Composite terms in A052007.
Sequence in context: A133763 A146475 A307217 * A057478 A128687 A193579
KEYWORD
nonn,more
AUTHOR
Cino Hilliard, Jan 12 2005
EXTENSIONS
a(11) from Ryan Propper, Jul 21 2006
a(12)-a(14) (using A052007) from Michael S. Branicky, Apr 30 2023
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 April 25 13:38 EDT 2024. Contains 371970 sequences. (Running on oeis4.)