editing
approved
editing
approved
Primes of the form 3x^2 + 17y^2.
Discriminant = -204. See A107132 for more information.
(PARI) list(lim)=my(v=List(), w, t); for(x=0, sqrtint(lim\3), w=3*x^2; for(y=0, sqrtint((lim-w)\17), if(isprime(t=w+17*y^2), listput(v, t)))); Set(v) \\ Charles R Greathouse IV, Feb 09 2017
approved
editing
Vincenzo Librandi and Ray Chandler, <a href="/A107158/b107158_1.txt">Table of n, a(n) for n = 1..10000</a> [First 1000 terms from Vincenzo Librandi]
editing
approved
N. J. A. Sloane et al., <a href="https://oeis.org/wiki/Binary_Quadratic_Forms_and_OEIS">Binary Quadratic Forms and OEIS</a> (Index to related sequences, programs, references)
N. J. A. Sloane et al., <a href="https://oeis.org/wiki/Binary_Quadratic_Forms_and_OEIS">Binary Quadratic Forms and OEIS</a> (Index to related sequences, programs, references)
QuadPrimesQuadPrimes2[3, 0, 17, 10000] (* see A106856 *)
QuadPrimes[3, 0, 17, 10000] (* see A106856 *) Note: the original QuadPrimes had a bug which could sometimes give wrong answers. This sequence should be checked (unless the coefficient of xy in the quadratic form is zero, in which case QuadPrimes gives correct answers). - N. J. A. Sloane, Jun 04 2014
QuadPrimes[3, 0, 17, 10000] (* see A106856 *)
QuadPrimes[3, 0, 17, 10000] (* see A106856 *) Note: the original QuadPrimes had a bug which could sometimes give wrong answers. This sequence should be checked (unless the coefficient of xy in the quadratic form is zero, in which case QuadPrimes gives correct answers). - N. J. A. Sloane, Jun 04 2014
editing
approved