It's buggy, at some point it gives a segmentation fault at around the `for(auto i : primes)` part. I think I should add a pragma critical there.