plan9 man page for factor

Query: factor

OS: plan9

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

FACTOR(1)						      General Commands Manual							 FACTOR(1)

NAME
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 than 2**56 (about 7.2e16) 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
/sys/src/cmd/factor.c /sys/src/cmd/primes.c FACTOR(1)
Related Man Pages
factor(6) - freebsd
matho-primes(1) - debian
primes(6) - freebsd
prime(1ssl) - plan9
prime(1ssl) - x11r4
Similar Topics in the Unix Linux Community
Refactoring via SHELL utilities
README: Factorial quick chart with sed & bc:
Help on writing data from 2 different files to one based on a common factor
How do I use grep to grab prime number output from my factor program?
T4-2 - Memory DIMM issue - ldom config resets to factory-default