#####My solutions to the https://projecteuler.net/archives ######The approach is to solve the problem in an imperative style and then convert to a functional style.