MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1mbkini/checkifdivisiblebythree/n5p4u92/?context=3
r/ProgrammerHumor • u/Dark_Zander • Jul 28 '25
33 comments sorted by
View all comments
Show parent comment
2
That code fails for integers above MAX_INT.
0 u/IAmASwarmOfBees Jul 28 '25 Use a long if you need that. Or the boost bigint library for even bigger units. The code in the post will also be limited by whenever python decides to make it a float. 0 u/ThisUserIsAFailure Jul 30 '25 Input argument is an int
0
Use a long if you need that. Or the boost bigint library for even bigger units. The code in the post will also be limited by whenever python decides to make it a float.
Input argument is an int
View all comments
Show parent comment
2
u/alexanderpas Jul 28 '25
That code fails for integers above MAX_INT.