Can someone explain why i might be failing one test case

Problem:

My solution:

  1. CodeChef: Practical coding for everyone
  2. CodeChef: Practical coding for everyone

I am failing just one test cas, can anyone tell me which case i might be failng

This is the statement that’s not correct

CleanShot 2023-04-18 at 10.34.52

Let’s say l=2 and r=4. 2 is not divisible by 3 and nor is 4, so your program will output 0 even though it should output 1 (for the integer 3).

Removing this statement completely solves it: CleanShot 2023-04-18 at 10.36.37

Solution: https://www.codechef.com/viewsolution/94617609