Test case 1 and 2 failed

I’m unable to find the reason as of why this code is failing

You are required to use prime seive optimisation in your code, Plz refer to online video lecture on prime seive optimisation for its implementation