Project Euler 235

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