Euler c solution #22