Project Euler 686

269着。
これはやさしい。

https://projecteuler.net/problem=686