PMO gives two random numbers a & b to the Prime Minister. PM Modi wants to visit all countries between a and b (inclusive) , However due to shortage of time he can’t visit each and every country , So PM Modi decides to visit only those countries,for which country number has two divisors. So your task is to find number of countries Mr. Modi will visit.
Can u pls help me to understand this challenge
hey @angivanshikaangi, you just have to find no of prime numbers between a and b.(including a and b also) . As timelimit is 1 sec. Use Prime Seive.