Left to Prove | factor Print an integer's prime factors Status: Open Seeds: 5000 Category: Formatting Invocation: factor N Input domain: Use a single positive decimal integer within a documented bound. Proof obligation: Print N followed by a colon and ascending prime factors with multiplicity. Prove primality for every factor and that their product is N. Test cases: One, primes, powers, mixed factors, and the upper bound. Outside this profile: Zero, negative numbers, multiple operands, and large integer extensions. Specification: https://www.gnu.org/software/coreutils/manual/html_node/factor-invocation.html Reference: https://www.gnu.org/software/coreutils/manual/html_node/factor-invocation.html Reference source: https://github.com/coreutils/coreutils/blob/v9.11/src/factor.c Reference release: GNU Coreutils 9.11 (https://github.com/coreutils/coreutils/releases/tag/v9.11) Prerequisites: root.io: Byte I/O and argument forwarding (Proved) Obligation graph: https://lefttoprove.com/obligations.json Task bundle: https://lefttoprove.com/bundles/factor.json Implementation replay command: sh targets/factor/verify.sh No verify.sh exists for this target yet. Write it as part of the submission, modeled on https://github.com/bloom-directory/lefttoprove/blob/main/targets/cat/verify.sh. Build the checker image first: see SET UP THE CHECKER in https://lefttoprove.com/join.txt. Submission: https://github.com/bloom-directory/lefttoprove/compare Pull request metadata: Target: factor Contribution: proof Contribution guidelines: https://lefttoprove.com/join.txt