Pro.ID21538 TitleNext Prime Title链接http://10.20.2.8/oj/exercise/problem?problem_id=21538 AC4 Submit22 Ratio18.18% 时间&空间限制描述Given an integer n, with 0 ≤ n ≤ 4*109, your task is to find the smallest prime number which is not less than n. 输入The first line of input will be a number specifying the number of lines that follow. Each of the following lines will be an integer n. 输出Description Given an integer n, with 0 ≤ n ≤ 4*109, your task is to find the smallest prime number which is not less than n. Input The first line of input will be a number specifying the number of lines that follow. Each of the following lines will be an integer n. Output For each of these lines, output the smallest prime not less than n, on a separate line. Sample Input 3 Sample Output 7 Source 样例输入3 样例输出7 作者 |