cccc-cli 1.9.2

The unified cccc binary: one CLI that measures cognitive/cyclomatic complexity across every bundled language (ECMAScript/TypeScript, Rust, Go, PHP, Ruby, Python, Perl, Zig, C, C++, Swift, Java, Dart, Scala, C#, Visual Basic .NET)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
unsigned int sum_of_primes(unsigned int max) {
    unsigned int total = 0;
    for (unsigned int i = 2; i <= max; i++) {
        for (unsigned int j = 2; j < i; j++) {
            if (i % j == 0) {
                goto next;
            }
        }
        total += i;
next:;
    }
    return total;
}