Johannes Nix <[EMAIL PROTECTED]> writes:
| In the man page for the factor command,
| the range of input numbers
| is given with  -2147483648 to 2147483647 inclusive.

Hmm... I just noticed that sh-utils-2.0 doesn't include
a man page for factor.  I've just fixed that.  Thanks.

So I presume you're looking at the man page for some other
version of factor.

| On the 64-bit Alpha  / Linux 2.2.13 / glibc2.1
| Platform, this is not true
| (and on the i686 platform it seems neither):
|
| jnix@mizar:~ > factor 15777379779999793139
| 15777379779999793139: 37946009 415784958571
|
| (The result seems correct when verifying
| with bc).
|
|
| Sorry that I bother you with this odd doc bug,
| but I was trying to find something which
| computes a while and it was disappointingly
| fast - it took only four seconds.

Here's a more challenging one.
It should take a bit longer :-)

  $ p=`echo '4294967279 4294967291*p'|dc`
  $ time factor $p
  18446743979220271189: 4294967279 4294967291

It takes around 12 minutes on a 400MHz PII.

Reply via email to