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.
Anything related to trial division is just lame. :P
not really, -41 is not a prime number, but 41 is. Why? because 41 has to be divisible by itself or by 1. Which means that something has to exist to divide 41. To divide -41 you will have to divide it with quantities that do not exist. -1 for example is a sense can represent 'lack' of something rather than '1' which means something atleast exists 1 time.
really intersting
Loved it! Made me crack my brains for a good while as a beginner. Thanks :)
This is a very interesting kata. There are trivial answers, and then there are very difficult (and more efficient) answers which could utilize advanced number theory and/or combinatorics. It's amazing just how difficult counting problems can actually be.
Code efficiency is a problem you have to solve.
this kata challenges more my code efficiency than the actual problem solving skill.
Hello guys, to whom may have encoutered the execution time error. (Your codes take too much time to execute even though you solved the problem)
This made me come to realize that this platform codewars isn't about statistics or proving how master you are in coding. it's about learning and improving your programming skill.
Therefore, It all comes down to "algorithm", the first 15 minute of this video https://www.youtube.com/watch?v=8hly31xKli0 will blow your mind.
Thanks, found my mistake. i need to make it better because its too slow
it keeps saying timed out. -_- i am new can someone help me
sorry, i am quite new and now that i saw the solutions i get it.
I would still leave the comment up, if others run in the same issue.
thanks
Read the description:
And that's what your code does, so, no wonder it will fail.
The kata works fine in Java (your language). Your code timing out is not a kata
issue
. You need to write a more efficient algorithm.This comment is hidden because it contains spoiler information about the solution
Loading more items...