O-Probability
What is the probability of picking a prime number from the given interval A,B? A and B are included in the interval. Picking is random.
Image: probability
InputFrom the standard input read two integers A and B.
(0 <= A <= B <= 2*10^9); (0 <= B - A <= 10^5)
(0 <= A <= B <= 2*10^9); (0 <= B - A <= 10^5)
OutputOn the standard output write two integers p and q separated by "/", representing an irreducible rational number which represents the probability.
Input:
Output:
10 20
Output:
4/11
Input:
Output:
123 9122
Output:
11/90
Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.