Untitled
unknown
plain_text
3 years ago
286 B
4
Indexable
#include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; for (int i = 2; i <= sqrt(n); i++) { if (n % i == 0) { cout << "slozhnoe"; return 0; } } cout << "prostoe"; return 0; }
Editor is loading...