Solution to problem 3

Solution to problem 3 (more or less the same as described at
http://math.stackexchange.com/questions/389675/largest-prime-factor-of-6
00851475143)