%I #16 Sep 08 2022 08:45:34
%S 5,47,167,173,293,383,503,647,677,773,797,887,983,1013,1223,1277,1487,
%T 1613,1637,1823,1847,1973,2063,2357,2477,2663,2687,2693,2903,2957,
%U 3023,3167,3407,3527,3533,3797,3863,4007,4133,4157,4373,4493,4583
%N Primes of the form 5x^2+42y^2.
%C Discriminant=-840. See A139827 for more information.
%H Vincenzo Librandi and Ray Chandler, <a href="/A139889/b139889.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)
%F The primes are congruent to {5, 47, 143, 167, 173, 293, 383, 437, 503, 647, 677, 773, 797} (mod 840).
%t QuadPrimes2[5, 0, 42, 10000] (* see A106856 *)
%o (Magma) [ p: p in PrimesUpTo(5000) | p mod 840 in {5, 47, 143, 167, 173, 293, 383, 437, 503, 647, 677, 773, 797}]; // _Vincenzo Librandi_, Jul 30 2012
%K nonn,easy
%O 1,1
%A _T. D. Noe_, May 02 2008
|