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.

Showing 1-2 of 2 results.

A216974 Numbers k such that k^4+2 is prime.

Original entry on oeis.org

0, 1, 3, 9, 15, 21, 45, 57, 63, 69, 87, 99, 129, 141, 279, 285, 333, 345, 453, 459, 465, 471, 513, 519, 627, 657, 669, 693, 729, 771, 777, 783, 795, 801, 807, 873, 909, 921, 933, 969, 987, 1011, 1023, 1047, 1119, 1155, 1257, 1299, 1323, 1407, 1419, 1437, 1485
Offset: 1

Views

Author

Michel Lagneau, Sep 21 2012

Keywords

Crossrefs

Cf. A067200, A067201, A182343 (associated primes).

Programs

  • Magma
    [n: n in [0..1500] | IsPrime(n^4+2)]; // Bruno Berselli, Sep 21 2012
  • Mathematica
    lst={}; Do[If[PrimeQ[n^4+2], AppendTo[lst, n]], {n, 0, 10^3}]; lst
    Select[Range[0, 1500], PrimeQ[#^4 + 2] &] (* Bruno Berselli, Sep 21 2012 *)
  • PARI
    select(n->isprime(n^4+2),vector(2000,n,n-1)) /* Joerg Arndt, Sep 21 2012 */
    

A214001 Numbers n such that n^2+2, n^3+2, n^4+2 and n^5+2 are all prime.

Original entry on oeis.org

0, 1, 909, 2055, 11925, 145881, 191079, 254199, 358875, 490215, 614241, 642105, 648261, 689655, 864159, 959595, 1030911, 1047585, 1056981, 1150335, 1366971, 1406571, 1669845, 1746525, 2299485, 2357751, 2491809, 2494329, 2629869, 2876859, 3162159, 3220041, 3257595
Offset: 1

Views

Author

Michel Lagneau, Feb 15 2013

Keywords

Comments

n^6+2 is also prime for n = 0, 1, 1746525, 2876859, …

Crossrefs

Programs

  • Mathematica
    Select[Range[3500000], And@@PrimeQ/@(Table[n^i+2, {i, 2, 5}]/.n->#)&]
    Select[Range[0,33*10^5],AllTrue[#^Range[2,5]+2,PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jul 21 2018 *)
Showing 1-2 of 2 results.