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.

A088110 Numbers n such that 2^n + n and 2^n - n are noncomposite.

Original entry on oeis.org

0, 1, 3, 9
Offset: 1

Views

Author

Amarnath Murthy, Sep 25 2003

Keywords

Comments

Conjecture: sequence is finite.
No more terms < 88075. - David Wasserman, Jul 20 2005

Examples

			9 is a member as 2^9 + 9 = 521 and 2^9 - 9 = 503 are primes.
		

Crossrefs

Programs

  • Magma
    [0,1] cat [n: n in [0..1000] | IsPrime(2^n+n) and IsPrime(2^n-n)]; // Vincenzo Librandi, Dec 08 2015
  • Mathematica
    Join[{0, 1}, Select[Range[1000], PrimeQ[2^# + #] && PrimeQ[2^# -#] &]] (* Vincenzo Librandi, Dec 08 2015 *)