Project Euler 516

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

14着。
これは簡単だった。
久しぶりに1時間を切ったので、その前がいつだったか調べてみた。Problem 479以来だった。