Skip to content

Instantly share code, notes, and snippets.

@vzayaz
Last active September 6, 2020 20:39
Show Gist options
  • Save vzayaz/d3e99d1e72bdd2d135026e18584f32e4 to your computer and use it in GitHub Desktop.
Save vzayaz/d3e99d1e72bdd2d135026e18584f32e4 to your computer and use it in GitHub Desktop.
Count naively
var res: Long = 0L
var i: Long = 0L
while (i < 1000L * 1000 * 1000) {
if (i % 2 == 0) res += 1
i += 1L
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment