Added problem 3 and prime factorization algorithm