OFFSET
1,1
COMMENTS
p and q cannot both be odd. Thus p=2 or q=2. Except for 2^3 + 3^4 = 89, all such primes are of the form 2^4 + q^3.
EXAMPLE
a(1) = 2^4 + 3^3 = 43.
a(2) = 2^3 + 3^4 = 89.
a(3) = 2^4 + 7^3 = 359.
a(4) = 2^4 + 13^3 = 2213.
a(5) = 2^4 + 67^3 = 300779.
a(6) = 2^4 + 163^3 = 4330763.
a(7) = 2^4 + 241^3 = 13997537.
MATHEMATICA
upto=45*10^9; With[{c=PrimePi[Ceiling[Power[upto-16, (3)^-1]]]}, Sort[ Join[ {89}, Select[#+16&/@(Prime[Range[2, c]]^3), PrimeQ]]]] (* Harvey P. Dale, Jul 08 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Sep 21 2006
EXTENSIONS
More terms from Harvey P. Dale, Jul 07 2011
STATUS
approved