Hide
Problem D
Coprime Integers
Given intervals
Input
The input consists of a single line of four space-separated
integers
Output
Print a single integer: the number of coprime pairs
Sample Input 1 | Sample Output 1 |
---|---|
1 5 1 5 |
19 |
Sample Input 2 | Sample Output 2 |
---|---|
12 12 1 12 |
4 |
Sample Input 3 | Sample Output 3 |
---|---|
1 100 1 100 |
6087 |