Deepak and primes

last test case shows no output : https://ide.codingblocks.com/#/s/15152
i know the problem is with 5000000th prime number, how to resolve this?
question link: https://hack.codingblocks.com/contests/c/452/700

It is not getting printed because you are supposed to find the 5000000th prime no and you are allocating sieve for only first 5000000 no.s

1 Like