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.
Ok, I see your point. From my point of view, I try to solve a Kata and then learn from the more experienced programmers how my solutions could be better. That's why I really like to see good code that is also readable. Sorry for complaining and you are right, everyone should decide for themselves how they solve their Katas.
Isn't it easy to read, it's a simple kata (probably i solved 50 prime katas;-)) so the code can't be too difficult;-)?!
"Clean code and comments" make sense for "bigger projects", but is often boring for katas:-)... So i like to be "quick and dirty" and often "compact";-)
At first I thought your solution would be really well done because it seemed so compact. After taking the time to really read your version I have to say that it's just messy. Why don't you try to write clean code that is easy to read, also for people that are not you? There is no shame in using brackets and line breaks :-)