Skip to content

Report the computed prime count, not the requested count - #3

Merged
xbill9 merged 1 commit into
fix/measurement-integrityfrom
fix/truthful-counts
Jul 15, 2026
Merged

xbill9 merged 1 commit into
fix/measurement-integrityfrom
fix/truthful-counts

Conversation

@xbill9

@xbill9 xbill9 commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Bug fixed

Bug 6 — agents claim the requested count. The exponent table has 26 entries, but the response text used the requested count:

$ curl ... "Calculate the first 100 Mersenne primes"
node: "Found first 100 Mersenne primes in 4450.78ms."   (computed 26)
rust: "Found first 100 Mersenne primes in 2160.45ms."   (computed 26)

Both agents now report primes.length / primes.len().

Stacked on #2 (touches the same response-formatting lines); retarget to main after #2 merges.

🤖 Generated with Claude Code

The Node and Rust agents responded "Found first {count} Mersenne primes"
using the requested count, but the exponent table caps at 26 entries.
Asking for 100 returned "Found first 100 Mersenne primes" while 26 were
computed. Both agents now report the actual number computed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@xbill9
xbill9 merged commit 238e531 into fix/measurement-integrity Jul 15, 2026
1 check passed
xbill9 added a commit that referenced this pull request Jul 15, 2026
@xbill9
xbill9 deleted the fix/truthful-counts branch September 27, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant