Prime sieve question

can u pls tell whats wrong here Its giving run error in third case, first and second cases passed

@sktg99 hey sanchit I have corrected your code visit this