%I #18 Feb 10 2017 14:26:01
%S 3,37,73,103,127,457,463,547,607,613,643,673,733,907,967,997,1213,
%T 1237,1423,1483,1597,1627,1657,1723,1747,1753,1987,1993,2053,2287,
%U 2377,2467,2503,2647,2677,2683,2953,3037,3187,3217,3253,3457,3583
%N Primes of the form 3x^2 + 25y^2.
%C Discriminant = -300. See A107132 for more information.
%H Vincenzo Librandi and Ray Chandler, <a href="/A107183/b107183.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[3, 0, 25, 10000] (* see A106856 *)
%o (PARI) list(lim)=my(v=List(),w,t); for(x=1, sqrtint(lim\3), w=3*x^2; for(y=0, sqrtint((lim-w)\25), if(isprime(t=w+25*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
|