C++ expression-power has increased considerably since C++11, and I believe, semantically, Prime Number generation in both C++ and Python could be python-line for c++-(line[s]) translated.
C++ approaching the comfort and ease of use of Python is a worthy goal to reach.
The flip side is well appreciated too (Cython, where Python can converge to C++ performance is noteworthy as well).
Maybe a lot of people is developing in Python, Ruby, PHP and others traditionally interpreted languages and aren't aware of it.
Using C or C++ for some domains would be painful, but regarding speed, memory usage or energy usage those languages tend to be the best. If only Rust would be less C++ like (I prefer "RISC" like languages)
True, although Python and Ruby are extreme cases here. PHP is JIT'd these days, and can be quite a bit faster on this kind of numerical code. JavaScript even more so. I've seen posts on r/rust asking why their Rust port wasn't faster than the JS version, and it turned out not to be lack of optimisation, it was just simple numerical code (doesn't require allocation) which is already super-optimised by modern JS engines.