A scala version of my project euler code.