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.

A261536 Primes p such that p^5 + 2 is also prime.

Original entry on oeis.org

11, 149, 179, 197, 281, 317, 389, 401, 419, 491, 509, 587, 977, 1019, 1217, 1289, 1367, 1499, 1607, 1637, 2039, 2111, 2339, 2459, 2609, 2801, 2897, 3119, 3221, 3359, 3701, 3767, 3917, 4451, 4517, 4871, 5237, 5531, 5717, 5879, 5927, 6197, 6311, 6959, 7151
Offset: 1

Views

Author

Vincenzo Librandi, Aug 24 2015

Keywords

Comments

Subsequence of primes of A216976. - Michel Marcus, Aug 24 2015
All terms == 5 (mod 6). - Robert Israel, Sep 22 2019

Examples

			11^5 + 2 = 161053 is a prime.
		

Crossrefs

Cf. primes p such that p^k+2 is also prime: A001359 (k=1), A048637 (k=3), this sequence (k=5), A261537 (k=7), A261538 (k=9).
Cf. A000040.

Programs

  • Magma
    [p: p in PrimesUpTo(12000) | IsPrime(p^5+2)];
  • Maple
    filter:= proc(p) isprime(p) and isprime(p^5+2) end proc:
    select(filter, [seq(i,i=5..10000,6)]); # Robert Israel, Sep 22 2019
  • Mathematica
    Select[Prime[Range[1000]], PrimeQ[#^5 + 2] &]