Https://ide.codingblocks.com/#/123

https://ide.codingblocks.com/#/123

the code is for printing nth prime number
the code is working well for t=10000,but it is not working for 5000000.
please help me in solving the issue.