add solution for the prime factors exercise