Moving out is_prime to common library.
Problem 9 Python solution.

Very inefficient.
Problem 10 Python solution.

Another inefficient one. :(