Public bug reported:

Binary package hint: bsdgames

Yesterday I reported that primes on my hardware yields values beyond the
documented range.  The man page claims:

DIAGNOSTICS
     Out of range or invalid input results in an appropriate error message
     being written to standard error.

I doubt that it's a security vulnerability since primes isn't on the
live CD.

Thus this should result in an error message.  Instead primes returns a
composite number.

$ primes 7757777773 7757777787
7757777777

In j notation, q: is the factor verb and */ means "insert multiply".
The precedence rule for sequences of nouns and verbs is simply right to
left evaluation.

   q:7757777777x
65827 117851
   */q:7757777777x
7757777777

(Or you could try Factor[7757777777] at Wolfram Alpha, or use a
calculator.)

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: bsdgames 2.17-19
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic x86_64
Architecture: amd64
Date: Fri Feb 25 19:45:06 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: bsdgames

** Affects: bsdgames (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug maverick

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/725367

Title:
  primes returns composites

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to