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.
Can you tell me why ? Just want to know ^^
This comment is hidden because it contains spoiler information about the solution
Gonna start using this thank you
This comment is hidden because it contains spoiler information about the solution
clean and elegant
Could you please explain to me why we need to subtract b from a!
it's beautiful
??? returning reference to stack variable ???
what if numbers has just one element?
it returns NaN
Very clever syntax..
I like your
return
statement inprime
function. It helps me a lot. Thank you for this and your support in Codewars :)Yoursolutionisgoodbutyourcodewouldbeeasiertoreadwithmorespaces.
Also, the inner while loop would be more readable if it were indented.