A141188 Duplicate of A038883.
3, 13, 17, 23, 29, 43, 53, 61, 79, 101, 103, 107, 113, 127, 131, 139, 157, 173, 179, 181, 191, 199, 211, 233, 251, 257, 263, 269, 277, 283, 311, 313, 337, 347, 367, 373, 389, 419, 433, 439, 443, 467, 491, 503, 521, 523, 547, 563, 569, 571, 599, 601, 607, 641
Offset: 1
Keywords
Examples
a(9) = 79 because we can write 79 = 3*5^2 + 2*5*2 - 4*2^2 (or 79 = 3*3^2 + 8*3*2 + 2^2).
Programs
-
Mathematica
Reap[For[p = 2, p < 1000, p = NextPrime[p], If[FindInstance[p == 3*x^2 + 2*x*y - 4*y^2, {x, y}, Integers, 1] =!= {}, Print[p]; Sow[p]]]][[2, 1]] (* Jean-François Alcover, Oct 25 2016 *)
Comments