Skip to content

Instantly share code, notes, and snippets.

@bastianccm
Last active December 12, 2015 10:49
Show Gist options
  • Save bastianccm/4761889 to your computer and use it in GitHub Desktop.
Save bastianccm/4761889 to your computer and use it in GitHub Desktop.
print 10-sum([sum(map(int,str(int(v)*(2-k%2)))) for k,v in enumerate("271828182845856")])%10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment