working solution for problem 3,5,8

I have a working solution for projecteuler problems 3, 5, and 8.