%I #18 Feb 10 2017 15:05:53
%S 139,211,379,409,619,811,859,1051,1171,1201,1321,1459,1489,1609,1801,
%T 2179,2251,2281,2371,2539,2659,3019,3121,3169,3361,3529,3571,3769,
%U 3931,4099,4201,4651,5059,5419,5449,5641,5689,5779,5851,5881,6091
%N Primes of the form x^2 + 90y^2.
%C Discriminant = -360. See A107132 for more information.
%H Vincenzo Librandi and Ray Chandler, <a href="/A107206/b107206.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, 90, 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)\90), if(isprime(t=w+90*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
|