SHARE
TWEET

Untitled

a guest Jun 15th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. #include<math.h>
  3.  
  4. #define  MAX      100000
  5. #define  NOPRIMO       1
  6. #define  PRIMO         0
  7.  
  8. int main(void)
  9. {
  10.    long int criba[MAX] = {PRIMO};
  11.    long int I;
  12.    long int maxprimo = 2;
  13.  
  14.    for(I = 2; I < MAX; I++){
  15.       if (I % maxprimo){
  16.          criba[I] = NOPRIMO;
  17.       }
  18.    }
  19. }
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