Project Euler 376

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

問題を理解するのに6分。
ジョギングしてくる。