NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/55695: factor(6) -h option doesn't always work



>Number:         55695
>Category:       bin
>Synopsis:       factor(6) -h option doesn't always work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 05 12:50:00 +0000 2020
>Originator:     Andreas Gustafsson
>Release:        NetBSD 9.0; also -current
>Organization:
>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

The factor(6) man page says:

     -h    If the -h flag is specified, factors will be printed in "human-
           readable" format.  If a factor x divides a value n (>1) times, it
           will appear as x^n.

but that doesn't actually work for factors greater than 65537:

  $ /usr/games/factor -h 4295098369
  4295098369: 65537^2
  $ /usr/games/factor -h 4295360521
  4295360521: 65539 65539

>How-To-Repeat:

See above.

>Fix:



Home | Main Index | Thread Index | Old Index