Hello, I just had a midterm and there was a question where we had to right a program which can calculate all the numbers which form quadruplets. A quadruplet would be
x^3+y^3+z^3=a^3
The program should only run till a<25 also,
0<x<y<z<a
at the end we had to output how many quadruplets exist and the number of comparisons we made. Can anyone please help me with an algorithm.
Thanks.