OFFSET
1,1
COMMENTS
p and q cannot both be odd. Thus p=2 or q=2. There are no primes of the form 2^2 + q^8 (consider divisibility by 5). Hence all solutions are of the form p^2 + 2^8 and are congruent to 7 mod 10.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 5^2 + 2^8 = 281.
a(2) = 19^2 + 2^8 = 617.
a(3) = 29^2 + 2^8 = 1097.
MAPLE
N:= 10^6: # to get terms up to N
select(isprime, [seq(2^8 + p^2, p = select(isprime, [5, seq(seq(10*i+j, j=[1, 9]), i=1..isqrt(N-2^8)/10)]))]); # Robert Israel, Jan 24 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonathan Vos Post, Sep 23 2006
EXTENSIONS
More terms from Robert Israel, Jan 24 2018
STATUS
approved