Project Euler 392

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

74着。何を間違えているのかと思ったら、符号だった。簡単な問題なのに。