Ad
  • Custom User Avatar

    Like others said, some code solves this kata in 1 second. So it CAN get optimised.

  • Custom User Avatar

    Your code is too slow for this problem. Large values of N (up to $10^{18}$) are tested and your solution should be able to handle such values.

  • Custom User Avatar

    Author's solution passes all tests below 1 second. Are you sure that your code is optimized at all?