emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#15626: closed (calc prime test fails for numbers >


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15626: closed (calc prime test fails for numbers > 8 million)
Date: Thu, 17 Oct 2013 03:40:03 +0000

Your message dated Wed, 16 Oct 2013 22:39:41 -0500
with message-id <address@hidden>
and subject line Re: bug#15626: calc prime test fails for numbers > 8 million
has caused the debbugs.gnu.org bug report #15626,
regarding calc prime test fails for numbers > 8 million
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
15626: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15626
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: calc prime test fails for numbers > 8 million Date: Tue, 15 Oct 2013 20:32:15 -0400 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Package: emacs
Version: 24.3

On x86_64 GNU/Linux:

emacs -Q -f calc
8000000 RET
k p
  -> Wrong type argument: listp, 8000000

Any number >= 8000000 (but < math-small-integer-size) fails in this way.

The problem is the

  (% (nth 1 n) 2) 0)

of math-prime-test, which still expects numbers larger than 8000000 to
be in (bigpos ... ) list format, but the limit is much greater than that
these days.

The calc manual is likewise outdated:

  19.5.7.1 Data Type Formats
  [...]
  Large integers are stored as lists of the form `(bigpos D0 D1 D2 ...)'
  for positive integers 1000000 or more,

(First reported at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679753 )



--- End Message ---
--- Begin Message --- Subject: Re: bug#15626: calc prime test fails for numbers > 8 million Date: Wed, 16 Oct 2013 22:39:41 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
> On x86_64 GNU/Linux:
>
> emacs -Q -f calc
> 8000000 RET
> k p
>   -> Wrong type argument: listp, 8000000
>
> Any number >= 8000000 (but < math-small-integer-size) fails in this way.
>
> The problem is the
>
>   (% (nth 1 n) 2) 0)
>
> of math-prime-test, which still expects numbers larger than 8000000 to
> be in (bigpos ... ) list format, but the limit is much greater than that
> these days.
>
> The calc manual is likewise outdated:

Thanks; this has been fixed in bzr.
(I should increase the size of math-primes-table when I get the chance,
too.)

> (First reported at
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679753 )

Ack; I never saw this.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]