Project Euler 378

http://projecteuler.net/index.php?section=problems&id=378

34着。13分。速くなりそうな気がしない。