dev/c/the_end/the_end.c

26 lines
488 B
C
Raw Normal View History

2011-06-12 21:34:03 +04:00
#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