So, while in practice my solution blows much, much earlier than yours, both are, technically, incorrect if the definition of correct is that it works for all natural numbers, and they are both incorrect for the same reason: computer limitations apply.
The word you are looking for is "totality". Function is total if it returns a value for each input in the domain
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The word you are looking for is "totality". Function is total if it returns a value for each input in the domain