MeehoweCK

Untitled

Apr 22nd, 2021
463
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. bool czy_pierwsza(int n)
  6. {
  7.     if(n < 2)
  8.         return false;
  9.     for(int i = 2; i*i <= n; ++i)
  10.         if(n % i == 0)
  11.             return false;
  12.     return true;
  13. }
  14.  
  15. int main()
  16. {
  17.     cout << czy_pierwsza(1237) << endl;
  18.     return 0;
  19. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×