Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.