Solves euler problems 62-65