Bug#762653: bsdgames: primes prints some composites

Andy Isaacson adi at hexapodia.org
Wed Sep 24 07:20:04 UTC 2014


Package: bsdgames
Version: 2.17-22
Severity: important

Dear Maintainer,

the /usr/games/primes program prints composite numbers when asked for large
values.

% primes $((0xffffffffff)) | head | while read p; do factor $p; done
1099511627791: 1099511627791
1099511627803: 1099511627803
1099511627807: 68729 15997783
1099511627813: 1007173 1091681
1099511627831: 1099511627831
1099511627839: 549733 2000083
1099511627873: 1099511627873
1099511627891: 1099511627891
1099511627917: 1099511627917
1099511627923: 284527 3864349

primes should only print primes, as it is documented to do.


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.1 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bsdgames depends on:
ii  libc6                 2.19-10
ii  libgcc1               1:4.9.1-12
ii  libncurses5           5.9+20140712-2
ii  libstdc++6            4.9.1-12
ii  libtinfo5             5.9+20140712-2
ii  wamerican [wordlist]  7.1-1

bsdgames recommends no packages.

bsdgames suggests no packages.

-- no debconf information



More information about the Pkg-games-devel mailing list