A solution by manpage mutti (Time: 1.6s, Blocks used: +26)
A solution by kitty (Time: 1.7s, Blocks used: +9)