A141158 Duplicate of A038872.
5, 11, 19, 29, 31, 41, 59, 61, 71, 79, 89, 101, 109, 131, 139, 149, 151, 179, 181, 191, 199, 211, 229, 239, 241, 251, 269, 271, 281, 311, 331, 349, 359, 379, 389, 401, 409, 419, 421, 431, 439, 449, 461, 479, 491, 499, 509, 521, 541, 569, 571, 599, 601, 619
Offset: 1
Keywords
Examples
a(3) = 19 because we can write 19 = 2^2 + 4*2*5 - 5^2.
Programs
-
Mathematica
lim = 25; Select[Union[Flatten[Table[x^2 + 4 x y - y^2, {x, 0, lim}, {y, 0, lim}]]], # > 0 && # < lim^2 && PrimeQ[#] &] (* T. D. Noe, Aug 31 2012 *)
Comments