Optimize the C++ version of Primes
Optimize the C++ version of Primes

- Replace shared_ptr with raw-ptr and pmr::monotonic_buffer_resource / pmr::unordered_map.
- Nodes are allocaed only if the key is missing from the hashmap.

kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks