// Sum loop benchmark - tight numeric loop
#include <stdio.h>
#include <stdint.h>

int64_t sum_to(int64_t n) {
    int64_t acc = 0;
    for (int64_t i = 1; i <= n; i++) {
        acc += i;
    }
    return acc;
}

int main() {
    int64_t result = sum_to(10000000);
    printf("Sum to 10M: %ld\n", result);
    return 0;
}
