Skip to content

Instantly share code, notes, and snippets.

@jay3686
Created February 13, 2012 04:41
Show Gist options
  • Save jay3686/1813737 to your computer and use it in GitHub Desktop.
Save jay3686/1813737 to your computer and use it in GitHub Desktop.
Python Answer to Embedly's Challenge 1
def badr(n):
return 1 if n is 1 else n * badr(n - 1)
n = 1;
while(reduce(lambda x, y: int(x) + int(y), str(badr(n))) != 8001):
n = n + 1
print n;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment