Apparently there are 28 Pythagorean triple dates each century and we just missed...
Trey Hunner 🐍 @treyhunner@mastodon.social
Apparently there are 28 Pythagorean triple dates each century and we just missed celebrating the last one for the century (yesterday!).
>>> from itertools import product
...
... for y, m, d in product(range(1, 100), range(1, 13), range(1, 32)):
... a, b, c = sorted((y, m, d))
... if a**2 + b**2 == c**2:
... print(f"20{y:02d}-{m:02d}-{d:02d}")
...
2003-04-05
[26 more triples]
2026-10-24
Better luck next century.