### Introduction

This part will focus on solving a few mathematical problems posed at http://projecteuler.net/. Scala is particularly suited for these kinds of problems because it can be used as a scripting language. This means that you can put a piece of code inside a file without context and run it with the command

Furthermore, Scala being a functional language allows problems to be solved in a short concise manner. Notice that you should probably spend some time looking at/thinking about/trying to solve the problems before you show the answers below.

I chose the problems according to their difficulty and nature, i.e. the problems are easily solvable in Scala and do not require any big mathematical insight.

You can click on the title for the description of the problem, and I will only present and explain the solution.

(more…)