Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
270 B
0
Indexable
Never
#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 || a==1) {
		cout << "Ne prostoe";
	}
	else {
		if (a != 1) {
			cout << "Prostoe";
		}

	}
}