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.

A028823 Numbers k such that k^2 + k + 17 is prime.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 19, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 35, 37, 38, 40, 42, 44, 45, 46, 47, 49, 53, 56, 57, 59, 60, 62, 63, 64, 70, 72, 73, 75, 76, 79, 81, 82, 86, 87, 91, 92, 95, 98, 103, 104, 108, 109, 110, 113, 114
Offset: 1

Views

Author

Keywords

Comments

Complement of A007636. - Michel Marcus, Jun 17 2013

Examples

			15^2 + 15 + 17 = 257, which is prime, so 15 is in the sequence.
16^2 + 16 + 17 = 289 = 17^2, so 16 is not in the sequence. Much more obviously, 17 is not in the sequence either.
		

Crossrefs

Programs

  • Magma
    [n: n in [0..1000] |IsPrime(n^2+n+17)] // Vincenzo Librandi, Nov 19 2010
    
  • Mathematica
    Select[Range[0, 199], PrimeQ[#^2 + # + 17] &] (* Indranil Ghosh, Mar 19 2017 *)
  • PARI
    is(n)=isprime(n^2+n+17) \\ Charles R Greathouse IV, Feb 20 2017
    
  • Python
    from sympy import isprime
    print([n for n in range(201) if isprime(n**2 + n + 17)]) # Indranil Ghosh, Mar 19 2017