About Primes

Can anybody do this or give hint. I know sieve will work fine but i’m not just geting the right no of prime. The problem is this POP UP PRIMES

//