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.

A070156 Numbers k such that k-1, k+1, k^2+1 and k^4+1 are all prime numbers.

Original entry on oeis.org

4, 6, 180, 3390, 18060, 19380, 34500, 92220, 92640, 96180, 114660, 127680, 133980, 140760, 159630, 161880, 172170, 207480, 254280, 255840, 263820, 296910, 309780, 378570, 380880, 397590, 408690, 422880, 432660, 440550, 511170, 540390, 572940
Offset: 1

Views

Author

Labos Elemer, Apr 23 2002

Keywords

Examples

			For n = 6: 5, 7, 37, 1297 are all primes.
		

Crossrefs

Subsequence of A070155.
Cf. A001359.

Programs

  • Mathematica
    Do[s=n; If[PrimeQ[n-1]&&PrimeQ[n+1]&&PrimeQ[1+n^2] &&PrimeQ[1+n^4], Print[n]], {n, 1, 1000000}]
  • PARI
    is(k) = isprime(k-1) && isprime(k+1) && isprime(k^2+1) && isprime(k^4+1); \\ Amiram Eldar, Jun 21 2024

Extensions

Offset corrected by Amiram Eldar, Jun 21 2024