Rewrote Euler21 for Erlang

Took longer than I thought. My Erlang is mad rusty.