Số Nguyên Tố(Bài 31). #include<iostream.h> void sont(int n) { int i; for(i=2;i<=n;i++) if(n%i==0 && n!=i) { cout<<"Khong phai la so nguyen to"<<endl; break; } else if(n==i) { cout<<"La so nguyen to"<<endl; break; } } void main() { int i,n; cout<<"Nhap so bat ky:";cin>>n; sont(n); }