Problem 116 and prime sieve generator improvements.

- Improve solution to problem 67 to solve problem 116.
- Better prime sieve generator implementation.