solves euler 54