Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main(int argc, char *argv[])
- {
- unsigned long long int w = 0, x = 0 , y = 0, z = 0;
- unsigned long long int MaxX=10000;
- printf("\n\tSoluciones: ");
- for (x = 10; x < MaxX; x++)
- {
- z = x*x-1;
- if (z%1141==0)
- {
- w = (x*x-1)/1141;
- for (y = 1;y < w; y++)
- {
- if (y*y == w)
- {
- printf("\t%d", y);
- }
- }
- }
- }
- printf("\n\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment