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.

A126909 Numbers n such that 1 + n^2 + n^4 + n^6 + n^8 + n^9 is prime.

Original entry on oeis.org

2, 18, 48, 56, 116, 120, 128, 146, 194, 198, 200, 230, 266, 278, 282, 288, 324, 362, 372, 390, 396, 420, 434, 458, 488, 576, 594, 708, 714, 728, 740, 774, 818, 830, 860, 888, 896, 912, 914, 990, 996, 1002, 1008, 1010, 1016, 1044, 1124, 1128, 1140, 1146, 1260
Offset: 1

Views

Author

Artur Jasinski, Dec 31 2006

Keywords

Crossrefs

Programs

  • Mathematica
    a = {}; Do[If[PrimeQ[1 + n^2 + n^4 + n^6 + n^8 + n^9], AppendTo[a, n]], {n, 1, 1400}]; a
    Select[Range[1300],PrimeQ[1+#^2+#^4+#^6+#^8+#^9]&] (* Harvey P. Dale, Apr 25 2020 *)
  • PARI
    is(n)=isprime(1+n^2+n^4+n^6+n^8+n^9) \\ Charles R Greathouse IV, Jun 13 2017