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.
None of the tests check for actually using Miller Rabin for testing and not just an actual primality test, since no false positive cases are tested.
And in any case, primality test is a duplicate of many existing katas.
Please add random tests.
thanks for feedback, resolved
The kata should follow naming conventions in Python and name the function
my_solution()
instead ofmySolution()
.I had the same problem in Chrome on Mac, but only if dev tools was open. Closing dev tools rendered everything properly.
This is an issue in Javascript now? That's incredibly frustrating. All of the other encoding issues with this kata have been limited to the Python translation. I'll look into it as soon as I have the time available to do so.
Meanwhile, maybe if I mention jhoffner it might help?
I am having this issue as well and cannot complete the kata because of it. All I see are the ã«ã¿ã«ã characters and I have tried 4 different browsers and checked that the character encoding is set to UTF-8 on all of them, but no luck. Any update on a way around this? I am using JavaScript.
It actually appears that Codewars has modified its test library for Python 2.x to work with ASCII encoding exclusively, which is what I'm guessing is causing these problems. I had actually built a new version of the test cases, one that would invalidate all of the solutions but use unicode strings, but they hit a snag when being passed into the Codewars test fixture. I'm thinking I'll just remove the Python 2.x version of this kata and port it all over to Python 3.x. In the meantime, even if you can't see the output properly, the byte-ordering is what you should be looking at. You can also test in a Python interpreter with Codewars acting funny.
I'm having this same problem, the browser is already set to UTF-8 but the Katakana alphabet doesn't appear
Thanks for the answer. I checked my browser's setting, but it's already set to UTF-8.
Would you say it's likely not something wrong with my code cause when I console.log out the input message, it's all messed up?
I am going to guess that you have your web browser configured to use the Latin-1, Western, or some similar character-encoding rather than UTF-8.
In Firefox, you can configure this by selecting the following from the view menu (if it's hidden you can press the alt key to reveal it, at least in Windows) View > Text Encoding > Unicode.
In Internet Explorer, you can configure this by selecting the following from the view menu (if it's hidden you can press the alt key to reveal it, at least in Windows) View > Encoding > Unicode (UTF-8)
In Chrome, you can configure this by going to the main menu and selecting More Tools > Encoding > Unicode
Can someone please help me with the Katakana cases?
All my other cases are fine.
The Katakana case shows up like this, and I have no clue what's going on cause of the wierd alphabets. I'm almost hypothesizing it's something to do with me not having the font on my computer.
encode(ã«ã¿ã«ã)
Expected: ã¿ã¢ã¿ã¯, instead got: ã¿ã³ã¿ã¢
decode (ã¿ã¢ã¿ã¯)
Expected: ã«ã¿ã«ã, instead got: ã«ã¿ã«ã¢
I had to just manually make the program produce [] when the input is a string or a non-integer....