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

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

[Octave-bug-tracker] [bug #43041] isprime(5i) returns true


From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #43041] isprime(5i) returns true
Date: Sat, 23 Aug 2014 19:37:09 +0000
User-agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1667.0 Safari/537.36

Update of bug #43041 (project octave):

                  Status:                   Fixed => Confirmed              
                 Summary: isprime(7i) returns true => isprime(5i) returns true

    _______________________________________________________

Follow-up Comment #2:

The bug is not that isprime(7i) is true, because it is, but that isprime(5i)
is true (which it's not, since 5i = (2 + i)(1+2i).

I'll patch this. There's no reason why this function should be restricted to
positive integers.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43041>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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