26 lines
488 B
C
26 lines
488 B
C
|
#include <stdio.h>
|
||
|
#include <sys/types.h>
|
||
|
|
||
|
#define N 65
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
int64_t d, i, j, k, prod, delta,
|
||
|
is, js, ks, deltas;
|
||
|
|
||
|
d = i = j = k = prod = delta = is = js = ks = deltas = 0;
|
||
|
|
||
|
for (d = 0; d < 4096; d++)
|
||
|
for (i = 1; i < N; i++)
|
||
|
for (j = i + 1; j < N; j++)
|
||
|
for (k = j + 1; k < N; k++) {
|
||
|
prod = i * i * j * j * k * k;
|
||
|
delta = (722500 + d - prod);
|
||
|
if (!delta) {
|
||
|
printf("722500 = (%ld * %ld * %ld) ^ 2\n", i, j, k);
|
||
|
}
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
w
|