forked from newde/homework
21 lines
340 B
C++
21 lines
340 B
C++
#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;
|
|
}
|