login
Primes or negative values of primes of the form 8*n^2 - 326*n + 2659 for n >= 0.
3

%I #29 Mar 08 2024 01:15:36

%S 2659,2341,2039,1753,1483,1229,991,769,563,373,199,41,-101,-227,-337,

%T -431,-509,-571,-617,-647,-661,-659,-641,-607,-557,-491,-409,-311,

%U -197,-67,79,241,419,613,823,1049,1291,1549,1823,2113,2741,3079,3433,3803

%N Primes or negative values of primes of the form 8*n^2 - 326*n + 2659 for n >= 0.

%C Terms are listed in the order of appearance. The absolute values are primes for 0 <= n <= 39.

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/Prime-GeneratingPolynomial.html">Prime Generating Polynomials</a>

%t Select[Table[8*n^2 - 326*n + 2659, {n, 0, 50}], PrimeQ[#]&]

%o (PARI) [n | n <- apply(m->8*m^2-326*m+2659, [0..100]), isprime(abs(n))] \\ _Charles R Greathouse IV_, Jun 18 2017

%Y Cf. A050267, A050268, A217439.

%K sign,easy,less

%O 1,1

%A _Pedja Terzic_, Oct 03 2012

%E More terms (to distinguish from quadratic) from _Charles R Greathouse IV_, Jun 18 2017