FACTOR(6)
π FACTOR(6) β NAME π
factor β factor a number. That's the name, that's the job, that's the whole main-character moment. This page is from the Games Manual, and it is literally just here to factor a number. π
β¨ SYNOPSIS β¨
factor [number ...]
π DESCRIPTION π
The factor utility will factor integers between -2147483648 and 2147483647 inclusive. Inclusive, bestie β both ends are in the club. π«Ά
When a number is factored, it is printed, followed by a : and then the list of factors, all on a single line. Factors are listed in ascending order, and each one is preceded by a space. If a factor divides a value more than once, it will be printed more than once β no cap, it's just showing up again because it has to. π
- When
factoris invoked with one or more arguments, each argument will be factored. - When
factoris invoked with no arguments,factorreads numbers, one per line, from standard input, until end of file or error. Leading whitespace and empty lines are ignored. Numbers may be preceded by a single-or+. Numbers are terminated by a non-digit character (such as a newline). After a number is read, it is factored. Input lines must not be longer than255characters.
π¨ DIAGNOSTICS π¨
Out of range or invalid input results in an appropriate error message being written to standard error. So if you try to clown this thing with bad input, it will write an error to standard error and keep it real. π
π BUGS π
factor cannot handle the β10 most wantedβ factor list. That's the bug note. The β10 most wantedβ factor list remains unhandled, and we respect its privacy. π
xoxo, this page is brought to you by Debian, dated February 8, 2004, and it lives under the FACTOR(6) manual-page banner. Bye bestie π
π¦ where this page comes from
- nixos 26.05: bsd-games 2.17
- nixpkgs unstable: bsd-games 2.17
- Copyright (c) 1989, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms