FWIW, for me doofenstein's version ran in 1.24 seconds on an 11 year old laptop on Linux on your input and a gcc-10.3 PGO build ran in 1.05 seconds (with the data you linked to in your thread-opening post). On more modern server HW it ran in 0.4 seconds.
So, chances are high that if it's still taking 2 seconds for you then you have more to learn about compile strategies to get fast run-times. Re: PGO there is more info [in this thread](https://forum.nim-lang.org/t/6295). And welcome!
