Shu Zong Chen committed 93ebbdd

problem4 wasn't going to 999 and didn't use generator expression as it should

Comments (0)

Files changed (1)


 	return s == s[::-1]
 def run():
-	return max([a*b for a in xrange(100, 999) for b in xrange(100, 999) if is_palindrome(a*b)])
+	return max(a*b for a in xrange(100, 1000) for b in xrange(100, 1000) if is_palindrome(a*b))
 if __name__ == "__main__":
 	print run()