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.

A123076 Numbers k such that p = 1 + 2k + 3k^2 + 4k^3 is prime.

Original entry on oeis.org

4, 12, 14, 18, 22, 24, 28, 34, 52, 62, 64, 78, 94, 104, 110, 118, 122, 132, 140, 144, 154, 158, 160, 178, 194, 204, 214, 218, 220, 234, 258, 262, 270, 272, 290, 294, 312, 314, 322, 344, 368, 370, 372, 382, 388, 424, 430, 440, 442, 454, 482, 494, 498, 518, 542
Offset: 1

Views

Author

Zak Seidov, Sep 27 2006

Keywords

Comments

Corresponding p's are in A123059.

Examples

			For k=4, 1 + 2k + 3k^2 + 4k^3 = 313 which is prime.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[542],PrimeQ[1+2#+3#^2+4#^3]&] (* James C. McMahon, Nov 15 2024 *)
  • PARI
    lista(m) = {for (n=1, m, if (isprime(1 + 2*n + 3*n^2 + 4*n^3), print1(n, ", ")););} \\ Michel Marcus, Apr 19 2013