%I #18 Feb 10 2017 16:20:14
%S 97,409,433,457,673,937,1009,1033,1153,1321,1489,1609,1657,1753,1777,
%T 2089,2161,2377,2521,2593,2689,2713,3121,3217,3361,3457,3673,3769,
%U 3889,4297,4561,4729,4801,4993,5209,5233,5857,5881,6073,6121,6337
%N Primes of the form x^2 + 96y^2.
%C Discriminant = -384. See A107132 for more information.
%H Vincenzo Librandi and Ray Chandler, <a href="/A107213/b107213.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[1, 0, 96, 10000] (* see A106856 *)
%o (PARI) list(lim)=my(v=List(),w,t); for(x=1, sqrtint(lim\1), w=x^2; for(y=1, sqrtint((lim-w)\96), if(isprime(t=w+96*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
|