Advertisement
Mihai_Preda

Untitled

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