solved euler35, somewhat inefficiently... took >1min