Skip to content

Instantly share code, notes, and snippets.

@musoftware
Created August 15, 2015 17:04
Show Gist options
  • Save musoftware/390f0128f7a04f7d665a to your computer and use it in GitHub Desktop.
Save musoftware/390f0128f7a04f7d665a to your computer and use it in GitHub Desktop.
sum in arithmetic
uint p = 10000000
uint sum = p*(p+1)/2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment