OFFSET
1,1
COMMENTS
Discriminant = -5280. See A139827 for more information.
LINKS
Vincenzo Librandi and Ray Chandler, Table of n, a(n) for n = 1..10000 [First 1000 terms from Vincenzo Librandi]
N. J. A. Sloane et al., Binary Quadratic Forms and OEIS (Index to related sequences, programs, references)
FORMULA
The primes are congruent to {173, 197, 293, 413, 437, 557, 677, 893, 1157, 1253} (mod 1320).
MATHEMATICA
QuadPrimes2[8, 0, 165, 10000] (* see A106856 *)
PROG
(PARI) isA140002(n) = if(isprime(n), {r=0; for(y=0, floor(sqrt(n/165)), t=n-165*y^2; if((t%8==0)&(issquare(t/8)), r=1)); r}, 0) \\ Michael B. Porter, Oct 05 2009
(Magma) [p: p in PrimesUpTo(12000) | p mod 1320 in [173, 197, 293, 413, 437, 557, 677, 893, 1157, 1253]]; // Vincenzo Librandi, Aug 04 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
T. D. Noe, May 02 2008
STATUS
approved