Guest User

Further Arithmetic Golfing

a guest
Sep 5th, 2017
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Python 2.7 code to find an arithmetic expression that results in an integer with certain properties.
  2. # Expression is used for golfing.
  4. for a in range(100000):
  5.     for b in range(1000):
  6.         s = str(a**b)
  7.         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":
  8.             print a, "**", b
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.