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(100000):
- for b in range(1000):
- s = str(a**b)
- if len(s) > 28 and s[28] == "0" and s[20]=="1" and s[13]=="2" and s[11] == "3" and s[4] == "4" and s[16] == "5" and s[17] == "6":
- print a, "**", b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement