solved euler 37, first 10 numbers are fast, second half is very slow