WA on testcase 3

have a look at my code https://ide.codingblocks.com/s/263500

Hey,
5,000,000 th prime number is 86,028,121. Thus you need to set the size of “p” (in your code) to a number greater than 86,028,121.

Can array contain 9 X 10^6 number of elements?

haaa ji ma`am… make an array of size 10000000

Rude, I used to think array could be of max size 10^6, I wasn’t trying to fw you but fair enough

i am sorry if it sounded so.
I hope u were able to attempt the q now…