Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Python 2.7 code to find an arithmetic expression that results in an integer with certain properties.
- # Expression is used for golfing.
- for a in range(10000):
- for b in range(100):
- s = str(a**b)
- if len(s) >= 9 and s[0] == "1" and s[1] == "3"\
- and s[3] == "2" and s[4] == "4" and s[6] == "5"\
- and s[7] == "6" and s[8] == "0":
- print "%s**%s = %s" % (a, b, s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement