4 ms·
If you need to know a leap year and it's before the year 6000, I made an interactive calculator and visualization [1]. It's >3 machine instructions (and I admi
by dndn1 1y ago
If you need to know a leap year and it's before the year 6000, I made an interactive calculator and visualization [1].
It's >3 machine instructions (and I admire the mathematical tricks included in the post), but it does do thousands of calculations fairly quickly :)
[1] https://calculang.dev/examples-viewer?id=leap-year https://calculang.dev/examples-viewer?id=leap-year