Project Euler 146

@see http://projecteuler.net/index.php?section=problems&id=146