login
Primes of the form 6x^2 + 11y^2.
2

%I #19 Feb 10 2017 09:50:16

%S 11,17,107,227,281,491,563,569,593,659,761,1187,1289,1361,1427,1451,

%T 1481,1553,1811,1889,1913,1931,2153,2243,2273,2411,2441,2459,2657,

%U 2939,3203,3209,3329,3449,3467,3593,3761,3779,3803,4259,4289,4457

%N Primes of the form 6x^2 + 11y^2.

%C Discriminant = -264. See A107132 for more information.

%H Vincenzo Librandi and Ray Chandler, <a href="/A107172/b107172.txt">Table of n, a(n) for n = 1..10000</a> [First 1000 terms from Vincenzo Librandi]

%H 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)

%t QuadPrimes2[6, 0, 11, 10000] (* see A106856 *)

%o (PARI) list(lim)=my(v=List(),w,t); for(x=0, sqrtint(lim\6), w=6*x^2; for(y=1, sqrtint((lim-w)\11), if(isprime(t=w+11*y^2), listput(v,t)))); Set(v) \\ _Charles R Greathouse IV_, Feb 10 2017

%K nonn,easy

%O 1,1

%A _T. D. Noe_, May 13 2005