Advertisement
Mihai_Preda

Untitled

Feb 25th, 2021
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1.      
  2. bool compus[nMax];
  3.  
  4. void ciur()
  5. {
  6.     for(int i = 2; i * i <= n; i += 2)
  7.         for(int j = i * i; j <= n; j += i)
  8.             compus[j] = true;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement