Can't get the output, can you please tell me where i am going wrong

hello @haseebshaik00
declare ur prime array as global and then try

still can’t pass one test case

check the prime number corresponding to 50 000 th prime number , and declare ur sieve size greater than that prime number and then it should work

it worked thank you!