PRIMES2 - Calculate primes till 1e9

Can somebody help me in solving this problem.