Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I had the same problem. I was getting NumberFormatExceptions because I was trying to parse an integer that was greater than the integer max value. My advice to anyone with this issue: Try refactoring your code to use strings instead of integers where possible (any more of a hint would spoil the answer.)
Idk why but the example "59544965313" crashes my program on code wars but when I test it in my main it works perfectly fine, someone?
Thank you, my bad i should have seen the tests down there.
Don't include
main
function in your code. The tests call your functionis_valid_ip
and check the value it returns.Oh, I'm using C.
It's what I said, when i try to test or attempt the tests are always a "Log". Then even if the answear is 1 or 0 it's always wrong.
Please say which language you're using and give more concrete elements, it's hard to help otherwise. You should read this: https://docs.codewars.com/training/troubleshooting/
So when I try to attempt or test it appear that log is a valid option i guess, idk waht this means.
And they are right.
I am getting the same error they are saying -5 is not a prime .
thank you , im stupid, i have been confused all day for this xD
No, it isn't.
So, this is saying that my code is wrong because -5 ins't a prie number, but it is or am I dumb?