login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A075896
Primes of the form 2^n - n^2.
9
7, 79, 431, 130783, 523927, 2251799813682647, 9007199254738183, 2417851639229258349405791, 9671406556917033397642519, 664613997892457936451903530140158127
OFFSET
1,1
LINKS
MATHEMATICA
Select[Table[2^n - n^2, {n, 500}], PrimeQ] (* Vincenzo Librandi, Dec 07 2011 *)
PROG
(PARI) for(n=2, 10^7, if(isprime(2^n-n^2), print1(2^n-n^2", ")))
(Magma) [a: n in [1..200] | IsPrime(a) where a is 2^n-n^2]; // Vincenzo Librandi, Dec 07 2011
CROSSREFS
Cf. A061119.
Sequence in context: A176130 A014232 A154592 * A201475 A079911 A003545
KEYWORD
nonn,easy
AUTHOR
Zak Seidov, Oct 17 2002
EXTENSIONS
More terms from Ralf Stephan, Mar 30 2003
STATUS
approved