Project Euler and Erlang – introduction, problem #1

I decided to start learning Erlang by solving problems from Project Euler. In short, Project Euler maintains a list of problems (mainly more mathematical than of programming) ordered by difficulty. I’ve solved some already in ruby, focusing on producing a straightforward (but not too stupid) working version first, then rethinking and refining the algorithms for simplicity and performance. For learning erlang, though, I shall first focus on working versions, then maybe later, when I get proficient with the language, revisit my old soulutions and tweak them. I decided to make a series of posts about this here, so, dear reader, you are reading part #1 now.

 
Read More