I am creating sieve but not getting large values

my prime is not giving ans for large values https://ide.codingblocks.com/s/194696

@rsaini9416624750 you have to print 5000000th prime number that lies around 10^8 so your n should be equal to this and arr size should be 10^8.

i tried that 10^8 but code show error

@rsaini9416624750 i have updated your code loo at this (https://ide.codingblocks.com/s/207491).