Find the number of integers ‘X’ in the range such that (Greatest common divisor) GCD(X, F(X)) > 1 Ragu has given a range (L, R] to Smith. Smith wants to require to find the number of integers ‘X’ in the range such that…