提交时间:2023-12-24 14:56:13

运行 ID: 33282

#include<cstdio> using namespace std; int main(){ int n,m=0,x=0,s; cin>>n; while(m<=n-1){ int c=0; x+=1; for(int i=1;i<=x;++i) if(x%i==0) c+=1; if(c==2){ m+=1; s=x; } } cout<<s; }