Wrote code for Problem 3(http://projecteuler.net/problem=3)