Ad
  • Default User Avatar

    I'm afraid it would be a bit too easy for cheaters, except with random tests...

  • Default User Avatar

    Seems Codewars has problems!
    For test3 the expected result is a STRING: "2 5 8 34 624" (same for the other tests) and I suppose you returned a string but your "4 12 33 624" is wrong becaause 33 is smaller than 34. Read again the description.
    Java tests don't give the number to decompose but your reasoning with sqrt(1249) is false. Read again the description:-) The input is ALWAYS a positive integer. I must add that this kata is rather difficult, you must stick to it!