FACTOR(1plan9)
π NAME π
okay bestie, welcome to factor(1plan9) π
factor, primes β factor a number, generate large primes β¨
π¦ SYNOPSIS π¦
factor [ number ]
primes [ start [ finish ] ]
π DESCRIPTION π
Factor prints number and its prime factors, each repeated the proper number of times. π§
the number must be positive and less than2**54(about1.8e16) β like, that is the vibe check, no exceptions π
If no number is given, factor reads a stream of numbers from the standard input and factors them. It exits on any input not a positive integer. Maximum running time is proportional to sqrt(n). π«Ά
Primes prints the prime numbers ranging from start to finish, where start and finish are positive numbers less than 2**56. If finish is missing, primes prints without end; if start is missing, it reads the starting number from the standard input. π
πΈ SOURCE πΈ
/src/cmd/factor.c/src/cmd/primes.c
this was served fresh from the Plan 9 manual, page FACTOR(1plan9) π the footer is literally FACTOR(1plan9) too β no date on it, just legacy, periodt β¨π
π¦ where this page comes from
- debian bookworm: 9base 1:6-13 Β· Lucent
- debian trixie: 9base 1:6-14 Β· Lucent
- ubuntu jammy: 9base 1:6-11 Β· Lucent
- ubuntu noble: 9base 1:6-14 Β· Lucent
- ubuntu questing: 9base 1:6-15
- ubuntu resolute: 9base 1:6-15build1 Β· Lucent
- ubuntu stonking: 9base 1:6-15build1 Β· Lucent
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms