Skip to content

Instantly share code, notes, and snippets.

@kimwalisch
Last active August 23, 2016 18:11
Show Gist options
  • Select an option

  • Save kimwalisch/0f8a30ee9c4ae5f0d00b9c845b0e82ed to your computer and use it in GitHub Desktop.

Select an option

Save kimwalisch/0f8a30ee9c4ae5f0d00b9c845b0e82ed to your computer and use it in GitHub Desktop.
# Compile using default C++ compiler
c++ -O2 segmented_sieve.cpp -o segmented_sieve
# Count the primes below 10^9
time ./segmented_sieve 1000000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment