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”).

A100362
Primes of the form 2^k - k + 1.
6
2, 2, 3, 13, 59, 65521, 262127, 18014398509481931, 288230376151711687, 1267650600228229401496703205277, 1329227995784915872903807060280344457
OFFSET
1,1
COMMENTS
The next term has 151 digits. - Stefan Steinerberger, Feb 11 2006
LINKS
MATHEMATICA
Select[Table[2^n-n+1, {n, 0, 500}], PrimeQ] (* Vincenzo Librandi, Jul 18 2012 *)
PROG
(Magma) [ a: n in [0..200] | IsPrime(a) where a is 2^n-n+1 ]; // Vincenzo Librandi, Jul 18 2012
(Sage)
def list_a(k):
return [(2**i) - i + 1 for i in range(k) if (2**i) - i + 1 in Primes()] # Giuseppe Bonaccorso, Aug 15 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Labos Elemer, Nov 19 2004
STATUS
approved