forked from: Project Euler 127

@see http://projecteuler.net/index.php?section=problems&id=127
違うアプローチで（といってもほとんど同じだけど）15秒制限内で終わるようにしたバージョン