My solution is not giving correct output (Maybe I am doing something wrong in the counting of numbers equal to gcd over a range. Pls tell me what's wrong in the solution. Thank you
Problem https://mirror.codeforces.com/contest/474/problem/F
Solution-> https://ideone.com/SD1Zmh