Problem 28: solved, but...

can't handle 1001 spiral due to "maximum recursion level reached"
Problem 28: solved