I have this code
ClearAll[a, b, r, c];
a = 1;
b = 3;
c = 5;
r = 15; ss =
Subsets[{x, y, z} /.
Solve[{(x - a)^2 + (y - b)^2 + (z - c)^2 == r^2}, {x, y, z},
Integers], {3}];
list = Timing[
Select[ss, (
EuclideanDistance[#[[1]], #[[2]]] ==
EuclideanDistance[#[[1]], #[[3]]] ==
EuclideanDistance[#[[3]], #[[2]]] &) ]]
How can I reduce the time to select three points on sphere to make an equilateral triangle?

