![](https://i-blog.csdnimg.cn/blog_migrate/9f1aa8fdc2910afdb17ba6d26ff6d317.jpeg)
#include<iostream>
using namespace std;
int main()
{
int n = 100;
cin>>n;
for(int i = 1;i<n;i++)
{
bool f = true;
for(int j = 0;j<n;j++)
{
f = false;
break;
}
if(n-i != f)
{
cout<<"no";
}
else if(f != 0)
{
cout<<i<<" ";
}
}
return 0;
}
s
#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
bool f = true;
for(int i = 2;i<n;i++)
{
if(n%i == 0)
{
f = false;
break;
}
}
if(f = false || n==1)
{
cout<<"no";
}
else
{
cout<<"yes";
}
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
bool f = true;
for(int i = 2;i<n;i++)
{
if(n%i == 0)
{
f = false;
break;
}
}
if(f = false || n==1)
{
cout<<"no";
}
else
{
cout<<"yes";
}
return 0;
}