This a solution for the euler problem #8. It differs by repeating the provided string 4096 times, thus running on a string with 4.096.000 (4M) characters.
Assuming ghc
is available, just type make
.
This'll build a binary and runs the solution on the 4M string. On my machine, this takes about 0.4 seconds.