Project Euler 322

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


ダメだ。頭が痛くて働かない。寝不足なので、少し寝るかな。