1
0
forked from newde/homework

镇乃天子

This commit is contained in:
2026-03-21 07:26:56 -04:00
parent 8d012e9523
commit dbca0f836c

View File

@@ -0,0 +1,20 @@
#include<iostream>
using namespace std;
int main(){
for(int i=2;i<100;i++){
bool n=true;
for(int j=2;j*j<=i;j++){
if(i%j==0){
n=false;
break;
}
}
if(n)
cout<<i<<" ";
}
return 0;
}