Euler187 saving work