Component

PrimeLedger

Extract factor files the smallest available divisor and reduces the live number. The number changes after every ruling, the factors remain visible as a ledger, and Reopen ledger restores the supplied value.

Possible use

It could let a reviewer factor a handoff estimate into a visible chain, or let a presenter turn an agenda number into a tiny arithmetic ceremony. The result is deterministic and the ceremony adds no insight.

Reasonable alternative

A reasonable local alternative is one calculation at the point where factors are actually needed, or simply displaying the original number. A ledger should not make division wait for a button.

01 / Preview

Try it yourself.

Preview Interactive
Prime ledger0 entries
Number still under review84
Extracted factors
Nothing has been factored yet.

Extract the smallest available factor, one ruling at a time.

Mechanism
1
Start with 84 and an empty factor ledger.
2
Extract the smallest divisor; the live number shrinks.
3
Reopen the ledger when manual arithmetic has gone far enough.

02 / Usage

Put it somewhere.

example.tsxTSX
import { PrimeLedger } from "gra-ui";
import "gra-ui/styles.css";

export function FactoredNotice() {
  return <PrimeLedger value={84} />;
}

03 / API

Small surface area.

PropTypeDescription
valuenumberThe positive integer submitted to the deliberately manual factor ledger.