Working through project euler problems