not clear to every test cases please help link is below
Prime vivsits question
Hello @vivan.singh
Errors in your code.
- Line 13, i should start from a and NOT a + 1 and go till b (included)
- Line 16, j should start from 1 and Not 2 because here we are finding number of divisors and 1 divides every number so โcountโ should be incremented for โ1โ also.
- variable sum should be incremented when count == 2 and NOT count >= 2 because it is written in the problem statement that PM Modi will visit only those countries whose country number has only two divisors.
Modified code