An Erlang solution of problem # 96 from Euler Project (http://projecteuler.net/problem=96)