#include #include #ifndef _LIBCPP_HAS_NO_THREADS #include #endif thread_local unsigned int tls_counter = 1; // a non-optimized way of checking for prime numbers: bool is_prime(int x) { for (int i = 2; i