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.

A048637 Primes p such that p^3 + 2 is also prime.

Original entry on oeis.org

3, 5, 29, 71, 83, 113, 173, 263, 311, 419, 431, 491, 503, 509, 683, 701, 761, 773, 839, 911, 953, 1031, 1091, 1103, 1151, 1193, 1259, 1283, 1373, 1451, 1523, 1583, 1601, 1733, 1823, 1889, 1931, 2099, 2153, 2213, 2273, 2339, 2351, 2441, 2531, 2543, 2609
Offset: 1

Views

Author

Keywords

Examples

			3 is a term since 3^3 + 2 = 29 is prime.
		

Crossrefs

Cf. A048636.

Programs

  • Magma
    [p: p in PrimesUpTo(3000) | IsPrime(p^3+2)]; // Vincenzo Librandi, Apr 11 2013
    
  • Mathematica
    Prime[ Select[ Range[ 500], PrimeQ[Prime[ # ]^3 + 2] &] ]
    Select[Prime[Range[400]], PrimeQ[#^3 + 2]&] (* Vincenzo Librandi, Apr 11 2013 *)
  • PARI
    forprime(p=2,3000,if(isprime(p^3+2),print1(p,", "))) \\ Hugo Pfoertner, Oct 30 2018

Extensions

More terms from Robert G. Wilson v, Dec 04 2000