cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A107182 Primes of the form 2x^2 + 37y^2.

This page as a plain text file.
%I A107182 #18 Feb 10 2017 14:20:28
%S A107182 2,37,109,199,383,431,461,487,911,919,997,1087,1213,1301,1583,1831,
%T A107182 1901,2381,2383,2999,3079,3221,3271,3389,3517,3533,3613,3719,3797,
%U A107182 3967,4349,4549,4639,4679,4751,4919,5309,5333,5741,5869,6197,6271
%N A107182 Primes of the form 2x^2 + 37y^2.
%C A107182 Discriminant = -296. See A107132 for more information.
%H A107182 Vincenzo Librandi and Ray Chandler, <a href="/A107182/b107182.txt">Table of n, a(n) for n = 1..10000</a> [First 1000 terms from Vincenzo Librandi]
%H A107182 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 A107182 QuadPrimes2[2, 0, 37, 10000] (* see A106856 *)
%o A107182 (PARI) list(lim)=my(v=List(),w,t); for(x=0, sqrtint(lim\2), w=2*x^2; for(y=0, sqrtint((lim-w)\37), if(isprime(t=w+37*y^2), listput(v,t)))); Set(v) \\ _Charles R Greathouse IV_, Feb 10 2017
%K A107182 nonn,easy
%O A107182 1,1
%A A107182 _T. D. Noe_, May 13 2005