Project Euler 294(1)

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


何時間経っているのか知らないが、もう26人も解けている。
うーん、どうやるんだろう。明日にするかな。