Added solution to P39 (*) A list of prime numbers