#include <iostream>
using namespace std;
int main()
{
int N=7;
cin>>N;
if(N%1==0)
{
cout<<"yes"<<endl;
}
else{
cout<<"no"<<endl;
}
return 0;
}
Can you please explain how you are determining if N is prime?
#include <iostream>
using namespace std;
int main()
{
int N=7;
cin>>N;
if(N%1==0)
{
cout<<"yes"<<endl;
}
else{
cout<<"no"<<endl;
}
return 0;
}
Can you please explain how you are determining if N is prime?