Deepak and Prime: Sieve of Eratos

Getting RunError in test case 3. Please tell me how?

CODE:https://ide.codingblocks.com/s/287368

hello @Rhinorox
a) image
use long long here.

b)image
size is not sufficient.
checck 500 000th prime number and put its value as n.