problem 12 solved - far too slow took about 5 hours to run 12376 iterations