[Community Puzzle] Maximising integers

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @SubwayMan,validated by @Alex-1,@sprkrd and @Nazo.
If you have any issues, feel free to ping them.

I passed all the test in the IDE but I cant seem to get validator 4 and 6. Is there something unique about those validators?

I don’t see anything unique about them. If you want, you may send me your code by private message and I’ll take a look.

The following custom cases may be useful for debugging:

(1)
Input: 2064187975
Output: 2179750648

(2)
Input: 9640168229
Output: 9641906822