Dont know why getting wrong answer and tle unable to find my mistake

This is the code please help me

hello @adityamehrotra275

dont prapare sieve again n again .
instead store count of prime till every i in array and then use that array.

check this-> link