cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A075896 Primes of the form 2^k - k^2.

Original entry on oeis.org

7, 79, 431, 130783, 523927, 2251799813682647, 9007199254738183, 2417851639229258349405791, 9671406556917033397642519, 664613997892457936451903530140158127, 784637716923335095479473677900958302012794430558004278391
Offset: 1

Views

Author

Zak Seidov, Oct 17 2002

Keywords

Crossrefs

Primes in A024012.

Programs

  • Magma
    [a: n in [1..200] | IsPrime(a) where a is 2^n-n^2]; // Vincenzo Librandi, Dec 07 2011
  • Mathematica
    Select[Table[2^n - n^2, {n, 500}], PrimeQ] (* Vincenzo Librandi, Dec 07 2011 *)
  • PARI
    for(n=2,10^7,if(isprime(2^n-n^2),print1(2^n-n^2",")))
    

Formula

a(n) = A024012(A072180(n)). - Elmo R. Oliveira, Feb 18 2025

Extensions

More terms from Ralf Stephan, Mar 30 2003