一本通1099

//qf
#include<bits/stdc++.h>
#define f(i,j,n) for(register int i=j;i<=n;i++)
using namespace std;
int n;
inline bool isprime(int x){
	if(x==1) return false;
	if(x==2) return true;
	for(register int i=2;i<=sqrt(x);i++) if(x%i==0) return false;
	return true;
}
signed main(){
	cin>>n;
	f(i,1,0x7f7f7f7f) if(isprime(i)) {
		n--;
		if(n==0){
			cout<<i<<endl;
			return 0;
		}
	}
} 
posted @ 2019-04-12 21:57  Isaunoya  阅读(381)  评论(0编辑  收藏  举报
TOP