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
I don't know why I cannot edit the example test cases after re-publishing several times. You need to calculate all primes less than 3 million. That is what P[i] <= 3000000 for all i means.
Sorry for the mistake.
I believe there are no tests expecting sumPrimes function. In fact my final solution does not have such a function name.
The guarantee is misleading and I have amended the Kata description.
Note that every element of P is less than 3 million. My apologies for poor description.