OFFSET
1,1
LINKS
R. J. Mathar and Vincenzo Librandi, Table of n, a(n) for n = 1..350 (first 44 terms from R. J. Mathar)
EXAMPLE
1483=3^3+5^3+11^3, 3+5+11=17;
7229=3^3+7^3+19^3, 3+7+19=29.
MATHEMATICA
Array[r, 99]; Array[y, 99]; For[i = 0, i < 10^2, r[i] = y[i] = 0; i++ ]; z = 4^2; n = 0; For[i1 = 1, i1 < z, a = Prime[i1]; a2 = a^3; For[i2 = i1 + 1, i2 < z, b = Prime[i2]; b2 = b^3; For[i3 = i2 + 1, i3 < z, c = Prime[i3]; c2 = c^3; p = a2 + b2 + c2; p3 = a + b + c; If[PrimeQ[p] && PrimeQ[p3], Print[a2, " + ", b2, " + ", c2, " = ", p, "; ", a, " + ", b, " + ", c, " = ", p3]; n++; r[n] = p]; i3++ ]; i2++ ]; i1++ ]; Sort[Array[r, 71]]
lst = {}; Do[q = Prime@a; r = Prime@b; s = Prime@c; p = q^3 + r^3 + s^3; t = q + r + s; If[PrimeQ@p && PrimeQ@t, AppendTo[lst, p]], {a, 14}, {b, a - 1}, {c, b - 1}]; Take[Sort@lst, 35] (* Robert G. Wilson v, Apr 13 2008 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 09 2008, Apr 14 2008
STATUS
approved