Working but slow euler43 solution