Ad
  • Custom User Avatar

    Looks to me that the testcases sumLudic(10) -> 107 and sumLudic(25) -> 1100 are wrong.
    Instead, they should be:
    sumLudic(10) -> 101 = 1 + 2 + 3 + 5 + 7 + 11 + 13 + 17 + 19 + 23
    sumLudic(25) -> 964 = 1 + 2 + 3 + 5 + 7 + 11 + 13 + 17 + 19 + 23 + 29 + 31 + 37 + 41 + 43 + 47 + 53 + 59 + 61 + 67 + 71 + 73 + 79 + 83 + 89