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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A263482 Numbers n such that n! + 2^n + 11 or n! + 2^n - 11 is prime. 1
 0, 2, 3, 4, 5, 6, 7, 9, 15, 34, 41, 79, 99, 379 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS Is there some n such that n! + 2^n + 11 and n! + 2^n - 11 are prime? LINKS EXAMPLE For n=0, n! + 2^n + 11 = 0! + 2^0 + 11 = 13, which is prime. For n=3, n! + 2^n - 11 = 3! + 2^3 - 11 = 3, which is prime. MATHEMATICA Select[Range[0, 400], Or[PrimeQ[#! + 2^# + 11], PrimeQ[#! + 2^# - 11]] &] (* Michael De Vlieger, Nov 17 2015 *) Select[Range[0, 500], AnyTrue[#!+2^#+{11, -11}, PrimeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jul 05 2019 *) PROG (PARI) for(n=0, 1e3, if(isprime(n!+2^n-11) || isprime(n!+2^n+11), print1(n", "))) (PARI) is(n)=my(N=n!+2^n); ispseudoprime(N-11) || ispseudoprime(N+11) \\ Charles R Greathouse IV, Nov 17 2015 CROSSREFS Cf. A007611, A261714, A263469. Sequence in context: A033072 A030287 A271950 * A030153 A039126 A083376 Adjacent sequences:  A263479 A263480 A263481 * A263483 A263484 A263485 KEYWORD nonn,more AUTHOR Altug Alkan, Oct 19 2015 EXTENSIONS a(14) from Charles R Greathouse IV, Nov 17 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.

Last modified November 27 07:28 EST 2021. Contains 349365 sequences. (Running on oeis4.)