Solution for problem 3
Solution for problem 4
Update solution for problem 3

Extract prime number generation out of the solution file for problem 3
to be able to use it for different purposes, also add number 2 as a
prime number when generating list of prime numbers.
This makes solution 3 slower but allows for a more general purpose
approach