Hacker News new | ask | show | jobs
by lucozade 2819 days ago
Most of it won't be because the C++ constexpr version has the same IO call and runs in <0.1s.
1 comments

I think that's because even the std::cout call could be precalculated, so no runtime string concatenation and stream magic is involved.