Prime Visits all test cases not passed

All the test cases are not passing correctly.

You need to use prime seive optimisation in your code, as given in online video lectures under number theory… Implement tht in your code…