/* while (condition ) { stmt1; stmt2; .... stmtn; }//endwhile */ /**************************************************************************/ /* Adds all the PRIME numbers from 2-SIZE */ /**************************************************************************/ #include using namespace std; int main() { const int SIZE = 200; int sum = 0; //initialize int n = 2; bool prime; int fact; while (n <= SIZE) { prime = true; fact = 2; while ( (fact <= n/2) && prime ) { if (n % fact == 0 ) prime = false; else fact++; }//inner while if (prime) sum = sum + n; n = n + 1; }//while cout << sum <