Upload your study docs or become a
Course Hero member to access this document
Unformatted text preview: if(n%i==0){ cout<<"Non Prime"<<endl; flag=1; break; } } if(flag==0){ cout<<"Prime"<<endl; } return 0; }...
View
Full Document