diff --git a/0228/242.cpp b/0228/242.cpp new file mode 100644 index 0000000..8620eda --- /dev/null +++ b/0228/242.cpp @@ -0,0 +1,23 @@ +#include +using namespace std; + +int main(){ + + + for(int a=2;a<=100;a++){ + + bool x=true; + + for(int i=2;i*i<=a;i++) + if(a%i==0){ + + x=false; + break; + } + if(x){ + cout<