Plz give me its solution

Plz give me its solution.Dont able to understand this

@Shadow_Flash This question is based on the Sieve of Eratosthenes. If you are not aware of this then please refer its lecture video in the number theory section of your course