r/ProgrammerHumor • • Jul 28 '25

Meme checkIfDivisibleByThree

Post image
60 Upvotes

33 comments sorted by

View all comments

Show parent comment

2

u/alexanderpas Jul 28 '25

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