#include using namespace std; int prim(int n) { if (n < 2) return 0; if (n == 2) return 1; if (n % 2 == 0) return 0; for (int d = 3; d * d <= n; d = d + 2) if (n % d == 0) return 0; return 1; } int main() { int n, contor = 0, maxim = -1000, minim = 1000000000; cin >> n; for (int i = 1; i <= n; ++i) { int temp; cin >> temp; if (prim(temp)) { contor++; if (temp < minim) minim = temp; if (temp > maxim) maxim = temp; } } cout << contor << " " << minim << " " << maxim; return 0; }