project euler solutions in scala