Count integers in the range [A, B] that are not divisible by C and D
Given four integers A, B, C and D. The task is to find the count of integers in the range [A, B] that are not divisible by C and D .Examples: Input: A = 4, B = 9, C = 2, D = 3 Output: 2 5 and 7 are such integers. Input: A = 10, B = 50, C = 4, D = 6 Output: 28 Approach: First include all the integers