project euler answers in scala