project euler solutions in swift