Ad
  • Default User Avatar

    "count_down = count_down / divider" is forced to zero at around 182nd iteration (product of all numbers 1...182. Something at the order of 10^315.) Your code in controling the loop (count_down) is wrong. It survives for smaller factors, but cannot stand big numbers.

  • Default User Avatar

    Clever but fails for example when "a"s of the test cases are replaced with "z"s