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.

A105389 Primes of the form x^2 + 32 y^2, also primes p with h(-p) divisible by 8.

Original entry on oeis.org

41, 113, 137, 257, 313, 337, 353, 409, 457, 521, 569, 577, 593, 761, 809, 857, 881, 953, 1129, 1153, 1201, 1217, 1249, 1321, 1553, 1601, 1657, 1777, 1889, 1993
Offset: 1

Views

Author

John L. Drost, May 01 2005

Keywords

Examples

			41 = 9 + 32 * 1, 113 = 81 + 32 *1, 137 = 9 + 32*4
		

References

  • Barrucand, P. and Cohn, H. Note on primes of the form x^2 + 32 y^2, class number and residuacity, Journal fur die reine und angewandte Mathematik, v.238, pp. 67-70.

Programs

  • Mathematica
    QuadPrimes2[1, 0, 32, 10000] (* see A106856 *)
    (* Second program: *)
    max = 10^4; Table[yy = {y, 1, Floor[Sqrt[(max - x^2)/32]]}; Table[x^2 + 32 y^2, yy // Evaluate], {x, 1, Floor[Sqrt[max]]}] // Flatten // Union // Select[#, # <= max && PrimeQ[#]&]& (* Jean-François Alcover, Oct 04 2018 *)