login
Primes of the form 2x^2+2xy+47y^2.
1

%I #17 Sep 08 2022 08:45:33

%S 2,47,59,71,107,131,191,227,311,359,419,431,443,467,479,503,563,599,

%T 659,683,839,887,971,1031,1103,1151,1163,1187,1223,1259,1307,1427,

%U 1451,1523,1559,1583,1619,1787,1823,1847,1907,1931,2003,2087,2267

%N Primes of the form 2x^2+2xy+47y^2.

%C Discriminant=-372. See A139827 for more information.

%H Vincenzo Librandi and Ray Chandler, <a href="/A139839/b139839.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 {2, 35, 47, 59, 71, 95, 107, 131, 143, 191, 227, 287, 299, 311, 335, 359} (mod 372).

%t QuadPrimes2[2, -2, 47, 10000] (* see A106856 *)

%o (Magma) [ p: p in PrimesUpTo(3000) | p mod 372 in {2, 35, 47, 59, 71, 95, 107, 131, 143, 191, 227, 287, 299, 311, 335, 359}]; // _Vincenzo Librandi_, Jul 29 2012

%K nonn,easy

%O 1,1

%A _T. D. Noe_, May 02 2008