Ad
  • Default User Avatar

    Thanks!

  • Default User Avatar

    Thanks for the hint. It was so slow. Optimized and passed the tests. Fun one, thanks for the tips.

  • Custom User Avatar

    Love this one. Thanks!!

  • Custom User Avatar

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

  • Custom User Avatar

    Hint: to calculate the sum of all proper divisors of a number n, you don't need to test every number up until n / 2.

  • Custom User Avatar

    Ah probably, if the error you receive is a timeout after 12 seconds, then that means you have to optimize your code. Hint: to calculate the sum of all proper divisors of a number n, you don't need to test every number up until n / 2.

  • Custom User Avatar

    I've got the right solution for this in Javascript but I am getting "Execution Timed Out (12000 ms)". I refactored the code several times and still not working. The sample tests run fine but when I attempt it's always failing. Is it really possible? Could it be that the tests in that translation are provoking some issues?