Skip to content

Instantly share code, notes, and snippets.

@TomasSirgedas
Created September 29, 2023 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TomasSirgedas/a2736ea313834438ae14281b2d73603d to your computer and use it in GitHub Desktop.
Save TomasSirgedas/a2736ea313834438ae14281b2d73603d to your computer and use it in GitHub Desktop.
primitive pythagorean triples using only factors of { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41 }
and legs < 10^9
12 35 37
12 5 13
132 475 493
84 187 205
84 13 85
156 133 205
204 253 325
10332 2755 10693
828 2035 2197
468 155 493
36 77 85
36 323 325
756 533 925
220 21 221
20 21 29
460 429 629
308 435 533
1508 165 1517
92 525 533
219604 12597 219965
364 627 725
2356 483 2405
836 123 845
76 1443 1445
4 3 5
140 171 221
4900 99 4901
644 333 725
1564 1827 2405
44 117 125
100 621 629
116 837 845
840 41 841
120 119 169
41496 6647 42025
24 7 25
264 1073 1105
24 143 145
360 319 481
2232 15295 15457
152 345 377
8 15 17
56 33 65
2296 897 2465
1624 57 1625
40 9 41
952 495 1073
104 153 185
7448 3375 8177
240 161 289
528 455 697
336 527 625
720 1519 1681
7056 2783 7585
144 17 145
784 2337 2465
176 57 185
496 897 1025
16 63 65
304 297 425
480 31 481
672 185 697
2784 1463 3145
416 87 425
352 135 377
576 943 1105
448 975 1073
64 1023 1025
2944 3567 4625
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment