题目大意
设 u(n) 为不超过 n 的最大素数,v(n) 为超过 n 的最小素数。
给定 n,求 i=2∑nu(i)v(i)1。
1≤T≤500,1≤n≤109
题目描述
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 i=2∑nu(n)v(n)1.
输入格式
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≤109).
输出格式
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.
样例输入输出
2
2
3
1/6
7/30