Source: https://guthlabs.ai/docs/instruments/prime-checker-generator-sieve/implementation/

instrument implementation / implementation-contract

# Prime Checker & Generator (Sieve) implementation

A source-bound implementation contract for Prime Checker & Generator (Sieve); deployment and executable qualification remain separate.

Status: **VERIFIED_WITH_ERRATA**Lifecycle: **implementation-contract**

## Binding contract

This record describes what an executable surface must bind and validate. It does not claim that a public calculator, package, or production route is deployed.

**Record owner**: Guth Instruments

**Lifecycle**: verified-with-binding-errata

**Evidence ID**: t4-045

**Effect**: Computation or source lookup only

## Input and validation requirements

The extreme integer 9007199254740993 cannot be represented exactly by ordinary JavaScript Number arithmetic and silently rounds to 9007199254740992. Accepting it without rejection or exact-integer handling can invalidate primality and range results. The range endpoint convention is also ambiguous unless explicitly defined.

## Required corrections

````
[
  {
    "vector": 1,
    "field": "classification",
    "wrong": "composite",
    "correct": "neither prime nor composite",
    "cause": "1 is a unit — neither prime nor composite"
  }
]
````

## Inspectable interface fixture

The sample below is evidence for interface and validation tests, not a production implementation.

````
{
  "inputs": {
    "operation": "primality_test",
    "n": 1
  },
  "expected_outputs": {
    "prime": false,
    "classification": "composite"
  },
  "working": "1 is less than 2. By definition, primes are integers greater than 1. Therefore 1 is not prime and the result is composite/non-prime."
}
````

## Other records

[01**Overview**](<https://guthlabs.ai/docs/instruments/prime-checker-generator-sieve/>)[02**Mechanism**](<https://guthlabs.ai/docs/instruments/prime-checker-generator-sieve/mechanism/>)[04**Qualification**](<https://guthlabs.ai/docs/instruments/prime-checker-generator-sieve/qualification/>)

## Sources and evidence

These pointers bind the page to evidence. They do not grant authority or collapse verification into deployment.

- `VERIFIED_LEDGER.json`

- `evidence-tranche4/tranche4-results.json`

- `tranche errata record`
