Deepak And Primes-Help

One test case giving runtime error.
Unable to find error.
Is it poosible to find 50000001th prime number using sieve()
dp should of what size?

@S18CC-OL0036 hey akash set your MAX as 100000005.

hey @S18CC-OL0036, take size as 100000001