|
|
|
|
背景 Background |
|
|
为了for beginngers,特设此题,^_^
|
|
|
|
|
|
|
|
描述 Description |
|
|
求第n个质数。质数又叫素数,除了1和本身外,不能被其他自然数整除的自然数。在密码学中有广泛的应用。如2,3,5,7,11,13,17,19,23,29,31,37,41,43,....例如第3个质数为5,第9个为23。
|
|
|
|
|
|
|
|
输入格式 Input Format |
|
|
1个自然数n (0<n<10 0<y<20)表示第n个。
|
|
|
|
|
|
|
|
输出格式 Output Format |
|
|
一个整数,表示第n个质数的值。 |
|
|
|
|
|
|
|
时间限制 Time Limitation |
|
|
各个测试点1s
|
|
|
|
|
|
|
|
注释 Hint |
|
|
Free Pascal Code:
-------------------
program Plus;
var a,b:longint;
begin
readln(a,b);
writeln(a+b);
end.
C++ Code:
-------------------
#include <iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
cout<<a+b<<endl;
return 0;
}
|
|
|
|
|
|
|
|
|
Flag |
|
题号 |
P1049 |
|
其它 |
通过 |
66人 |
提交 |
240次 |
通过率 |
27% |
难度 |
0 |
|
|
|
|
|
|