Just copy in the current description.
Needs better tests.
Satisfaction rating is too low (79%).
Still not approvable, I don't know why... :/
Updated the description and the JS part too (for the first time ever ;-) -- you may approve it if you can.
I used a temp value and feel like a scrub:(
@anter69: The idea was that some people do it in JS and Python, so I would be able to approve the kata. If I update the code myself, I won't be able to do it... (if I well understood the rules behind all of that. That I'm not really sure... :/ )
So, still the JS version to update. Still a suggestion to resolve... ;)
I updated the random test cases in python (which were done by me, btw) to compare the full arrays, instead of checking the lenght and last element.
Oh, you could have done it, too! :-)
Copy-pasting the solution from the test suite is not really nice...
Your kata is nice and it is a very good idea to submit something like this to other warriors, considering the high number of kata related to primes. But there is an inconsistency in the specs: You ask to generate an array, but you check only the length and the last number. So, to make it coherent, you should:
With that, your kata will be ready to go out of beta and it will be even nicer. ;)
I updated the python sample code, added some example test, and updated the test cases.
Nice use of the in-place swap.
Thanks for the translation. C++ needs more high level katas :)
This comment is hidden because it contains spoiler information about the solution