OFFSET
1,1
COMMENTS
All terms from 103 onwards in A068229 are primes which are the sum of 5 distinct positive squares in more than one way.
EXAMPLE
103 = 1^2 + 2^2 + 3^2 + 5^2 + 8^2 = 2^2 + 3^2 + 4^2 + 5^2 + 7^2.
127 = 1^2 + 2^2 + 3^2 + 7^2 + 8^2 = 1^2 + 4^2 + 5^2 + 6^2 + 7^2 = 1^2 + 2^2 + 4^2 + 5^2 + 9^2.
MATHEMATICA
sum5sqP = {}; Do[Do[Do[Do[Do[p = a^2 + b^2 + c^2 + d^2 + e^2; If[PrimeQ[p], AppendTo[sum5sqP, p]], {e, d - 1, 1, -1}], {d, c - 1, 1, -1}], {c, b - 1, 1, -1}], {b, a - 1, 1, -1}], {a, 6, 30}]; a = Take[Sort[sum5sqP], 1000]; a = Select[Table[If[a[[n]] == a[[n - 1]] && a[[n]] != a[[n - 2]], a[[n]], ""], {n, 3, Length[a]}], IntegerQ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jul 16 2011
STATUS
approved