while (n–->42) { std::cout << n; }

Optimizations enabled by -ffast-math

https://kristerw.github.io/2021/10/19/fast-math/