Problem 10

This problem is really inefficient (it's been running for about 45 minutes and it's only at about 111 000), but I think it will do the trick.
Python - Problem 1

I should probably split these into different folders. Anyway, I set the goal to do ten in Scheme and then do the same ten in Python, so here's 1.py.