Utility catalogue
Formatting ยท GNU extension
factor
Print an integer's prime factors
Open5,000 seeds
Proof brief
- 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.
Subtasks and prerequisites
Read obligations JSONThis target needs root.io (proved).
Task bundle
Read bundle JSONA formal Rocq statement has yet to be published for this profile.
This target has no verifier yet. Add targets/factor/verify.sh with your submission, modeled on targets/cat/verify.sh. The pull request check runs it with sh targets/factor/verify.sh.
GitHub submissions
See the review queueView GitHub pull requests for the current status.