Boston numbers in mathematics section

what is the problem in this code as only one test case is failing in this code .can you please tell me what is the loophole .

Hi , @drishti307 , your code is not correctly working for many inputs eg :- 4 22 27 58 85 94 121 166 202 265 274 319 346 355 378 382 391 438 454 483 these are some boston number u can use to check the code
Here, I have corrected your code

In case of any doubt feel free to ask :slight_smile:

mark your answer as resolved if you got the answer