You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8cf0f9b
Browse filesBrowse the repository at this point in the historyBrowse files
optimize: improve sieveOfEratosthenes performance and readability
- Mark only odd multiples starting from i² to reduce iterations
- Collect primes after marking to avoid duplicates and simplify logic
- Explicitly include 2 and skip even numbers throughout
0 commit comments