Euler c solution #23