Untitled
unknown
plain_text
3 years ago
307 B
6
Indexable
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 2; i <=sqrt(n); i++) {
if (n % i == 0) {
cout << "ne prostoye potomu chto delitsya na i";
return 0;
}
}
cout << "prostoye chislo";
return 0;
}
Editor is loading...