SHARE
TWEET

Untitled

a guest Oct 15th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int prim(int n) {
  2.     if (n<2)
  3.     return 0;
  4.     else {
  5.         int d;
  6.         for (d = 2; d*d <= n; d++)
  7.             if (n%d == 0) return 0;
  8.                 else return 1; }
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top