Codeforces Round 232 (Div. 2)
D
On Sum of Fractions
Codeforces
未评级
原题
← CE →
翻译中…

Let's assume that

翻译中…
  • $*v*(*n*)$ is the largest prime number, that does not exceed $*n*$;
  • $*u*(*n*)$ is the smallest prime number strictly greater than $*n*$.
翻译中…

Find image.

翻译中…

Input

翻译中…

The first line contains integer $*t* (1 ≤ *t* ≤ 500)$ — the number of testscases.

翻译中…

Each of the following $*t*$ lines of the input contains integer $*n*$ ($2 ≤ *n* ≤ 10^{9}$).

翻译中…

Output

翻译中…

Print $*t*$ lines: the $*i*$-th of them must contain the answer to the $*i*$-th test as an irreducible fraction "$*p*$/$*q*$", where $*p*, *q*$ are integers, $*q* > 0$.

翻译中…

样例

Input #1
2
2
3
Output #1
1/6
7/30
InputCopy OutputCopy
题目信息
题号
397D
时间限制
2 s
内存限制
256 MB

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。