A007635 Primes of form n^2 + n + 17.
17, 19, 23, 29, 37, 47, 59, 73, 89, 107, 127, 149, 173, 199, 227, 257, 359, 397, 479, 523, 569, 617, 719, 773, 829, 887, 947, 1009, 1277, 1423, 1499, 1657, 1823, 1997, 2087, 2179, 2273, 2467, 2879, 3209, 3323, 3557, 3677, 3923, 4049, 4177, 4987, 5273
Offset: 1
References
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
- James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, page 115.
- David Wells, The Penguin Dictionary of Curious and Interesting Numbers. Penguin Books, NY, 1986, 96.
Links
- Seiichi Manyama, Table of n, a(n) for n = 1..10000
- Eric Weisstein's World of Mathematics, Prime-generating Polynomial.
Programs
-
Magma
[a: n in [0..250]|IsPrime(a) where a is n^2+n+17]; // Vincenzo Librandi, Dec 23 2010
-
Mathematica
Select[Table[n^2 + n + 17, {n, 0, 99}], PrimeQ] (* Alonso del Arte, Nov 27 2019 *)
-
PARI
select(isprime, vector(100,n,n^2+n+17)) \\ Charles R Greathouse IV, Jul 12 2016
-
Python
from sympy import isprime it = (n**2 + n + 17 for n in range(250)) print([p for p in it if isprime(p)]) # Indranil Ghosh, Mar 18 2017
Comments