Ad
  • Custom User Avatar

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

  • Custom User Avatar

    I am really not sure about this. Inputs go slightly above 1M, and determining whether a number of magniture 1M is prime is not that expensive, or difficult. Some optimization techniques are to be expected for a 5 kyu kata, but this kata requires only very basic ones, nothing really fancy.

  • Custom User Avatar

    how on earth is this an issue

  • Default User Avatar

    I've seen hacky code before - this isn't hacky in the least. If anything, it's the most idiomatic way to do this, imo.