Untitled
Anonymous
plain_text
10/30/2022 11:36 AM
312 B
25
Indexable
#include <iostream>
using namespace std;
int main() {
int a,b=0, i = 1;
cin >> a;
while (i < a) {
if (a % i == 0) {
b++;
}
i++;
}
if (b > 1) {
cout << "Ne prostoe";
}
else {
cout << "Prostoe";
}
}Editor is loading...