Python Problem 10 minor changes

Attempting to implement some sort of sieve algorithm instead of complete brute force.