FACTOR(6)

πŸ“¦ version 2.17, in nixos 26.05, nixpkgs unstable

πŸ’… 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 factor is invoked with one or more arguments, each argument will be factored.
  • When factor is invoked with no arguments, factor reads 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 than 255 characters.

🚨 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