OFFSET
1,1
COMMENTS
A subset of these, {65537, 93241, 191969, ..} allows this representation in more than 3 ways.
LINKS
Robert Israel, Table of n, a(n) for n = 1..3930
EXAMPLE
2089 = 19^2+12^3 = 33^2+10^3 = 45^2+4^3
MAPLE
N:= 10^6: # to get all terms <= N
for x from 1 to floor(N^(1/2)) do
for y from 1 to floor((N-x^2)^(1/3)) do
p:= x^2 + y^3;
if isprime(p) then
if assigned(R[p]) then R[p]:= R[p]+1
else R[p]:= 1
fi
fi
od
od:
sort(map(op, select(t -> R[op(t)]>2, [indices(R)]))); # Robert Israel, Mar 21 2017
MATHEMATICA
t={}; Do[Do[AppendTo[t, n^2+m^3], {n, 300}], {m, 300}]; t=Sort[t]; t3={}; Do[If[t[[n]]==t[[n+2]]&&PrimeQ[t[[n]]], AppendTo[t3, t[[n]]]], {n, Length[t]-2}]; t3; f1[l_]:=Module[{t={}}, Do[If[l[[n]]!=l[[n+1]], AppendTo[t, l[[n]]]], {n, Length[l]-1}]; t]; (*ExtractSingleTermsOnly*) f1[t3] (* or *)
mx = 10^6; First /@ Sort@ Select[ Tally[ Join @@ Reap[(Sow@ Select[#^3 + Range[ Sqrt[mx - #^3]]^2, PrimeQ]) & /@ Range[mx^(1/3)]][[2, 1]]], #[[2]]>2 &] (* faster, Giovanni Resta, Mar 21 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Feb 10 2012
EXTENSIONS
More terms from Robert Israel, Mar 21 2017
STATUS
approved