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.

A106963 Primes of the form 4x^2 + 5y^2.

Original entry on oeis.org

5, 41, 61, 109, 149, 241, 269, 281, 389, 409, 421, 449, 569, 601, 641, 661, 701, 821, 829, 881, 929, 1069, 1129, 1181, 1201, 1301, 1321, 1381, 1429, 1481, 1489, 1609, 1801, 1889, 1901, 1949, 2129, 2141, 2161, 2221, 2269, 2281, 2309, 2341, 2381
Offset: 1

Views

Author

T. D. Noe, May 09 2005

Keywords

Comments

Discriminant = -80.

Programs

  • Mathematica
    QuadPrimes2[4, 0, 5, 10000] (* see A106856 *)
  • PARI
    list(lim)=my(v=List(),w,t); for(x=0, sqrtint(lim\4), w=4*x^2; for(y=1, sqrtint((lim-w)\5), if(isprime(t=w+5*y^2), listput(v,t)))); Set(v) \\ Charles R Greathouse IV, Feb 09 2017