Solve problems 48,64,187,206 using Java.
Improve performance of Python's prime generator.
Improve performance of Python's problem 187.