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.
https://www.codewars.com/kata/reviews/64abed357cbb0400010acc5b/groups/667669efae093df165d30e93
Fixed by fork above.
Fork approved.
Javascript translation
Javascript translation
Well, if it's end-inclusive then for input
11
shouldn't it result in3
instead of2
since11 + 2
is also prime?Anyway, the description is still unclear imo.
It was not mentioned that the range is end-exclusive.
.
Approved by someone.
Finally done this kata! A hard one it was to accomplish. Kinda disappointed that this kata indeed goes towards micro-optimization and I had to spam attempt to pass. Nonetheless, it was refreshing to complete this after getting frustrated with other math katas. Thanks for the kata.
Better version of my previous solution :)
any
typeYes, but then again it's not a good experience for a kata that (based on current ranking votes) would be 7kyu to scroll through the output horizontally and search for the placement of each new-lines and bar chars when they can just show it normally.
Sample tests should use
strictEqual
.chai.config.truncateThreshold
to0
orfalse
so that user can see fully the expected result.Loading more items...