#abc253d. [abc253_d]FizzBuzz Sum Hard
[abc253_d]FizzBuzz Sum Hard
Problem Statement
Find the sum of integers between and (inclusive) that are not multiples of or .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
10 3 5
Sample Output 1
22
The integers between and (inclusive) that are not multiples of or are , and , whose sum is .
Sample Input 2
1000000000 314 159
Sample Output 2
495273003954006262