On Jul 2, 7:09 pm, "Alec Mihailovs" <[EMAIL PROTECTED]> wrote:
> From: "Daryl Hammond" <[EMAIL PROTECTED]>

Hi Alec,

> > SAGE Version 3.0, Release Date: 2008-04-23
> > array size:       10000000
> > number of primes: 664580
> > Elapsed seconds:  70.93
>
> That seems to be quite slow anyway.

It is about two orders of magnitude and it looks like your Maple code
is actually compiled. In case I am reading your code right could you
tell us what the runtime of an interpreted version of your code would
be like? I would guess that with Cython one could get similar timings,
but overall this is not relevant to the slowdown observed ;)

> For example, for my Maple program ES2,
> seehttp://www.mapleprimes.com/blog/alec/the-eratosthenes-sieve,
>
> time(ES2(10^7));
>                                 0.702
>
> Also, the number of primes given by your program is 1 more than it should
> be,
>
> ArrayNumElems(ES2(10^7));
>                                 664579
> Alec Mihailovs

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to