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 is more like a thinking problem than solving problem.
Yes, you right. I didn't find anything when I searched for something similar.
I removed JS.
Yes, it's 46, my mistake.
95% of time of this kata was to understand what you want. I passed the example tests but didn't what's wrong with random tests.
After I figure it out, I solved in 2 minutes.
Example: [1,2,3,10,1,2,3,7,1,2,5] => 48
I got confused by the dolphin. If dolphin is True than the shark speed is divided in half, nothing else.
A little hint: It's about index in the preloaded list
[ [p, sum of all i_j of I for which p is a prime factor (p positive) of i_j] ...]
[[p, sum of all numbers from the list that are divisible with p]]
p = prime number
-7 is the lowest in the list but in your result doesn't appear. This kata is a little tricky.
With f0 > 0, 0 is omitted, you need to include 0 in checking the result.
This comment is hidden because it contains spoiler information about the solution