int num, a = 0; cout << "Input a number to check prime or not : "; cin >> num; if (num != 0 && num >= 2) { for (int x = 2; x &l