Grafika saw an omoshiroi problem yesterday: give you a positive number , find the minimal prime number
that
, of cource, such prime number may not exist.
Problem G: 五队-大连-Minimum prime
Time Limit: 1 Sec Memory Limit: 32 MBSubmit: 54 Solved: 12
[Submit][Status][Web Board]
Description
Input
There are multiple test cases. Given (
) as described before in one line. Process to end of file.
Output
Print the prime number in one line. If such prime number doesn’t exist, print “-1” instead.
Sample Input
10
5
2
Sample Output
3
2
-1
HINT
한국어
中文
فارسی
English
ไทย
Anything about the Problems, Please Contact Admin:admin
All Copyright Reserved 2010-2013 ZJUT ONLINE JUDGE TEAM
GPL2.0 2003-2013 HUSTOJ Project TEAM
Anything about the Problems, Please Contact Admin:admin
All Copyright Reserved 2010-2013 ZJUT ONLINE JUDGE TEAM
GPL2.0 2003-2013 HUSTOJ Project TEAM