Original Post
When I run this program it stops responding can someone explain to me why this happens. What this program is supposed to do is find the prime numbers between 1 and 100 #include <iostream> #include <stdlib.h> using namespace std; int main(int argc, char *argv[]) { for(int i = 1;i < 100;i++) { for(int x=0;x <= 9 && x != i;x++) { if((i % x) == 0) cout << i << endl; } } system("PAUSE"); return 0; }