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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I'm doing this in python. All my basic tests pass but the random ones all fail. My code produces a value is consistantly slightly over the expect. I can't figure out why. Any tips?
Thanks,
-Matt
This comment is hidden because it contains spoiler information about the solution
This was so much fun. This got me thinking about and visualizing regexes in a whole new way!
So I had to google "are there negative prime numbers" and got conflicting answers but it seemed like in theory you just consider the absolulte value of a number as to wether it was prime or not. So I wrote my solution that way and it will return is_prime(-7) as True.
I guess if they are testing random inputs they aren't testing random negative ones.