OFFSET
1,1
COMMENTS
Also primes of the form x^2+xy+8y^2. - N. J. A. Sloane, Jun 02 2014
Also primes of the form x^2-xy+8y^2 with x and y nonnegative. - T. D. Noe, May 07 2005
Primes p such that the polynomial X^3 + X + 1 splits mod p (see Williams and Hudson link). - Robert Israel, Jun 01 2020
REFERENCES
David A. Cox, "Primes of the Form x^2 + n y^2", Wiley, 1989.
LINKS
Vincenzo Librandi and Ray Chandler, Table of n, a(n) for n = 1..10000 [First 2000 terms from Vincenzo Librandi]
N. J. A. Sloane et al., Binary Quadratic Forms and OEIS (Index to related sequences, programs, references)
K. Williams and R. Hudson, Representation of primes by the principal form of discriminant -D when the classnumber h(-D) is 3, Acta Arithmetica 57.2 (1991): 131-153.
MAPLE
N:= 10000: # for terms <= N
S:= select(isprime, {31, seq(seq(x^2+31*y^2, y=1..floor(sqrt((N-x^2)/31))),
x=1..floor(sqrt(N)))}):
sort(convert(S, list)); # Robert Israel, Jun 01 2020
MATHEMATICA
QuadPrimes2[1, 0, 31, 10000] (* see A106856 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved