(Poor) solution for problem 11
Solution for problem 12. Improve prime number gen