Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool compus[nMax];
- void ciur()
- {
- for(int i = 4; i <= n; i += 2)
- compus[i] = true;
- for(int i = 3; i * i <= n; i += 2)
- for(int j = i * i; j <= n; j += i)
- compus[j] = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement