I was looking into this code, it works for almost all but breaks for certain set of numbers
mt: 7 8 9 10 11 12 13 14 23 24 25 26 41 42 43
dc: 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
Ive put the example for which the program breaks and gives the following error
