// Sum loop benchmark - tight numeric loop
const std = @import("std");

fn sumTo(n: i64) i64 {
    var sum: i64 = 0;
    var i: i64 = 1;
    while (i <= n) : (i += 1) {
        sum += i;
    }
    return sum;
}

pub fn main() void {
    const result = sumTo(10000000);
    std.debug.print("Sum 1 to 10M: {d}\n", .{result});
}
