OFFSET
1,1
COMMENTS
Least prime in which either x&y is k: 577, 53, 13933, 41, 41, 397, 53, 353, 337, etc. - Robert G. Wilson v, Feb 13 2017
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
Prime number 53 is a term because 53 = 2^2 + 7^2 and 2 + 7 = 9 is a perfect square.
MATHEMATICA
fQ[n_] := Block[{x = 1, y, lmt = Sqrt[n/2]}, While[y = Sqrt[n - x^2]; x < lmt && (!IntegerQ@ y || !IntegerQ@ Sqrt[x + y]), x++]; x < lmt]; Select[ Prime @Range@1750, fQ] (* Robert G. Wilson v, Feb 13 2017 *)
PROG
(PARI) is(p)=p%4==1 && isprime(p) && issquare(vecsum(qfbsolve(Qfb(1, 0, 1), p))) \\ Charles R Greathouse IV, Feb 14 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Feb 13 2017
STATUS
approved