Solving for Project Euler using Erlang