factor man page on OSF1

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
OSF1 logo
[printable version]

factor(1)							     factor(1)

NAME
       factor - To get the prime factors of a number

SYNOPSIS
       factor [integer]

DESCRIPTION
       When factor is used without an argument, it waits for an integer.  When
       a positive integer less than or equal to 10**14 (10 ^ 14) is given,  it
       factors	the  integer. The factor command also prints the prime factors
       of the integer and then waits for another integer.  The	command	 exits
       if it encounters a zero or any non-numeric character.

       If  factor is invoked with an argument, it factors the integer and then
       exits.

       The maximum time taken to factor an integer is proportional to sqrt(n).
       This  is	 the time the factorcommand will take when n is a prime or the
       square of a prime.

       The factor command also supports exponential input (10e10, 10E10) .

EXAMPLES
       The following example shows the use of the command factor  with	normal
       range integers.	$factor 1015 1015
	    5
	    7
	    29	The  following	example	 shows	use of the command factor with
       out-- of--range integers.  $factor 58584595792797592  58584595792797592
       Ouch!  The following example shows use of the command factor with expo‐
       nential input.  $factor 10e10 100000000000
	    2
	    2
	    2
	    2
	    2
	    2
	    2
	    2
	    2
	    2
	    2
	    5
	    5
	    5
	    5
	    5
	    5
	    5
	    5
	    5
	    5
	    5 The following example shows use of the command factor with expo‐
       nential input.  $factor 10E10 100000000000
	    2
	    2
	    2
	    2
	    2
	    2
	    2
	    2
	    2
	    2
	    2
	    5
	    5
	    5
	    5
	    5
	    5
	    5
	    5
	    5
	    5
	    5

ERRORS
       The  command  factor prints out the error message Ouch!	for input that
       is out--of-range or garbage input and quits when a non-integer input is
       used.

								     factor(1)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OSF1

List of man pages available for OSF1

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net