It's difficult to say why your code works incorrectly if we don't even know what language you try, and what your code is. Post your code here (remember about code formatting and mark it as spoiler!) so we could take a look together and help you find your mistake.
Not a kata issue, your current code passes that test, but it is too slow to pass the Attempt tests.
NOTE on performance: There are no fancy optimizations required, but still the most trivial solutions might time out. Numbers go up to 2^31 ( or similar, depending on language ). Looping all the way up to n, or n/2, will be too slow.
This comment is hidden because it contains spoiler information about the solution
It's difficult to say why your code works incorrectly if we don't even know what language you try, and what your code is. Post your code here (remember about code formatting and mark it as spoiler!) so we could take a look together and help you find your mistake.
Not a kata issue, your current code passes that test, but it is too slow to pass the Attempt tests.
Read that part of the description again. Read the Troubleshooting guide too: https://docs.codewars.com/training/troubleshooting
This comment is hidden because it contains spoiler information about the solution