Optimize Euler examples.