/*- Author: Brian Tiffin Dedicated to the public domain Date started: November, 2016 Modified: 2016-12-14/11:55-0500 Tectonics: gdc -o tightloop-d tightloop-d.d +*/ /* Sum of values from 0 to 16777216 */ module tightloop; import std.stdio; void main(string[] args) { long total = 0; for (int n = 0; n <= 1<<24; n++) total += n; writeln(total); }