Failing one test case

please check what is wrong with my code
CODE ID:-259018

@chitranshanmol07 remove the if(n>1&&n<1000) condition and then try