Just to add to the list below:

OpenSSL> version
OpenSSL 0.9.8b 04 May 2006
OpenSSL> prime 2
2 is prime

Bob Richardson
Allina Hospitals and Clinics
Minneapolis MN 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Victor Duchovni
Sent: Monday, March 05, 2007 4:24 PM
To: openssl-users@openssl.org
Subject: Re: 2 is not prime?

On Mon, Mar 05, 2007 at 02:06:19PM -0800, Brandon Ooi wrote:

> Hi,
> 
> Sorry if this is a dumb question but I couldn't find the openssl 
> bugzilla (or equivalent) to look for this. I was using openssl to 
> check primes and kept running into these weird issues until I found
this...
> 
> $ openssl version
> OpenSSL 0.9.7f 22 Mar 2005
> $ openssl prime 2
> 2 is not prime

    $ 0.9.6/bin/openssl version
    OpenSSL 0.9.6m 17 Mar 2004
    $ 0.9.6/bin/openssl prime 2
    openssl:Error: 'prime' is an invalid command.
    ... copious usage ...

    $ 0.9.7/bin/openssl version
    OpenSSL 0.9.7l 28 Sep 2006
    $ 0.9.7/bin/openssl prime 2
    2 is not prime

    $ 0.9.8/bin/openssl version
    OpenSSL 0.9.8d 28 Sep 2006
    $ 0.9.8/bin/openssl prime 2
    2 is prime

    $ 0.9.9/bin/openssl version
    OpenSSL 0.9.9-dev XX xxx XXXX
    $ openssl prime 2
    2 is prime

> But.. 2 is prime right?

Yes.

> Anyways, it's not a huge issue but this could be a bigger bug?

Not likely, just a failure in 0.9.7 to exclude 2 from the set of
composite even numbers.

-- 
        Viktor.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]


This message contains information that is confidential and may be privileged.  
Unless you are the addressee (or authorized to receive for the addressee), you 
may not use, copy or disclose to anyone the message or any information 
contained in the message.  If you have received the message in error, please 
advise the sender by reply e-mail and delete the message.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to