%I #14 Jan 25 2018 02:54:53
%S 281,617,1097,1217,5297,10457,17417,19577,23057,32297,39857,44777,
%T 52697,58337,72617,167537,192977,212777,241337,249257,383417,398417,
%U 502937,517217,564257,704177,830177,885737,943097,982337,1018337,1038617,1079777,1442657,1515617,1560257,1692857,1745297,1985537
%N Primes of the form p^2 + q^8 where p and q are primes.
%C 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.
%H Robert Israel, <a href="/A122710/b122710.txt">Table of n, a(n) for n = 1..10000</a>
%F {a(n)} = {p^2 + q^8 in A000040 where p and q are in A000040}.
%e a(1) = 5^2 + 2^8 = 281.
%e a(2) = 19^2 + 2^8 = 617.
%e a(3) = 29^2 + 2^8 = 1097.
%p N:= 10^6: # to get terms up to N
%p 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
%Y Cf. A000040, A045700 (of form p^2+q^3), A122617 (of form p^3+q^4).
%K nonn
%O 1,1
%A _Jonathan Vos Post_, Sep 23 2006
%E More terms from _Robert Israel_, Jan 24 2018
|