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.

A106949 Primes of the form 2x^2 + 9y^2.

Original entry on oeis.org

2, 11, 17, 41, 59, 83, 89, 107, 113, 131, 137, 179, 227, 233, 251, 257, 281, 347, 353, 401, 419, 443, 449, 467, 491, 521, 563, 569, 587, 593, 617, 641, 659, 683, 761, 809, 827, 857, 881, 929, 947, 953, 971, 977, 1019, 1049, 1091, 1097, 1163, 1187, 1193
Offset: 1

Views

Author

T. D. Noe, May 09 2005

Keywords

Comments

Discriminant = -72.

Programs

  • Magma
    [ p: p in PrimesUpTo(2000) | p mod 24 in {2, 11, 17} ]; // Vincenzo Librandi, Jul 22 2012
  • Mathematica
    QuadPrimes2[2, 0, 9, 10000] (* see A106856 *)
  • PARI
    {a(n)= my(m, c); if(n<1, 0, c=0; m=0; while( cMichael Somos, Aug 19 2006 */
    
  • PARI
    list(lim)=my(v=List([2]),t); forprime(p=11,lim, t=p%24; if(t==11||t==17, listput(v,p))); Vec(v) \\ Charles R Greathouse IV, Feb 09 2017
    

Formula

Primes congruent to 2,11,17 modulo 24. - Michael Somos, Aug 19 2006