Problem 2 solved
Solved problem 3

I learned about fermat's factorization method