/*- Author: Brian Tiffin Dedicated to the public domain Date started: December 2016 Modified: 2016-12-14/14:01-0500 +*/ /* Sum of values from 0 to 16777216 */ int main(string[] args) { long total=0; for (var i=1; i <= 1<<24; i++) total += i; stdout.printf("%ld\n", total); return 0; }