Which approach to apply

i m unable to think which approach should i apply.Please provide some hint

apply seive of erasthosthenes till 1e8 and take store all the primes.
now print them