Deepak and Primes code failing two of the test cases

My code using prime seive is failing two of the test case for the above mentioned problem.
Here is the code: https://ide.codingblocks.com/s/84461

hey @prajwalbakshi, you need to prove nth prime number, but you are creating primeSieve of n size. Read the question carefully. You should create a primeseive of large size and then find nth prime number from this primeSieve.

consider this code for reference: https://ide.codingblocks.com/s/84583