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 mean...A very creative solution.
(3 years, wow! Sorry for the "ressurrection") also if you parse x into an int instead floor (correct me if I am wrong) if there was any float as arbument you grant it will works too.
nerd 100?
This soltuion is when you are paid by the hour lol
Making it even worse πππππππ
Thank you, I missed that - then indeed there's no need for dealing with sqrt- and ^2-ing :)
"X will be a valid integer number."
Only valid for integer
x
. Works wrong for, say,x
= 31.7You are not looking for easy ways, are you?
I would really like you to explain your code if you have time. I am not sure how you managed to not write a isPrime() method
I just edited per your suggestion. Thank you.
Can't edit the kata (at least not until 1 week after this issue is raised), so you'll have to do this yourself at the moment ;-)
Description is unclear where it says "return the name as is" in case of short input, as returning the original string won't work. Maybe add "return an array containing only the name as is"?