#000359

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)

OutputOn the standard output write two integers p and q separated by "/", representing an irreducible rational number which represents the probability.

Input:
10 20

Output:
4/11

Input:
123 9122

Output:
11/90


Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.