Attempting the Project Euler problems as an exercise to learn Erlang