Skip to content

Instantly share code, notes, and snippets.

@galenseilis
Created October 13, 2022 21:16
Show Gist options
  • Save galenseilis/ef2915b3bea530fa9335a58477bcbbae to your computer and use it in GitHub Desktop.
Save galenseilis/ef2915b3bea530fa9335a58477bcbbae to your computer and use it in GitHub Desktop.
f = lambda n: sum([int(i) for i in str(n)])
print(f(2**1000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment