Various project euler problems