update euler-019

fix formatting, made slight change to speed up code