87int main(
int argc,
char *argv[]) {
95 auto primes = std::vector<bool>(max,
true);
98 auto start = std::chrono::high_resolution_clock::now();
104 auto time = std::chrono::duration_cast<
105 std::chrono::duration<double, std::ratio<1>>>(
106 std::chrono::high_resolution_clock::now() - start)
110 if (argc > 1 && argv[1] == std::string(
"print")) {
115 std::cout <<
"Time taken: " << time <<
" seconds" << std::endl;