fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. const int N = 1e6;
  4.  
  5. bool prime_poo(long long prime){
  6. if (prime <= 1)return false;
  7. for (long long p = 2; p < prime; p++){
  8. if (prime % p == 0){
  9. return false;
  10. }
  11. }
  12. return true;
  13. }
  14.  
  15. signed main(){
  16. ios::sync_with_stdio(false);
  17.  
  18. int n, a[N];
  19. cin >> n;
  20. for (long long i = 0; i < n; i++){
  21. cin >> a[i];
  22. }
  23. for (long long i = 0; i < n; i++){
  24. continue;
  25. }
  26. cout << prime_poo(2);
  27. }
Success #stdin #stdout 0s 5268KB
stdin
Standard input is empty
stdout
1