Resolving the euler project problems with scala