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.
Your code uses floating-point division instead of integer division (times have changed since Python 2. -> 3.)
Your code will fail for very large non-prime numbers like
2^32
because it performs a lot of unnecessary computation in prime && divisor checking. (You should read about prime divisors and find an optimal boundary to stop the iteration)issue with your code is not an issue, read this
How the heck does this account for the order in which people arrive? As its all sums.
Run it with [100, 25, 25, 25, 25, 25] and it fails. should be NO, but returns yes.
wow
I tried to check if n is a prime number when each time n changes. Hope this can help.
Thanks for replying.
Since i haven't solved this kata i can't determine whether the problem i have is an a issue.
You remind me well,thanks again.
hi 1vaR: I'm not affiliated with this kata in any way, but in general please don't use the Issue flag to raise questions –– an Issue is something that's wrong with the kata, not a problem you're having with solving it
Hi sir,can you take a look at my new issue about this kata?
It wouldn't take you much time,thanks!
This comment is hidden because it contains spoiler information about the solution
Best.
Enjoy!
Try one line!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
really?what's the alternative method?
This comment is hidden because it contains spoiler information about the solution
Loading more items...