Hello,
the following code takes more than one minute to acheive its job.

Is there some technical problem with the server ?

Christophe


==== Simple code =====

def pgcdBoucle(a, b):
    n = 0

    if b > a:
        a, b = b, a

    while(b != 0):
        a, b = b, a%b
        n += 1

    return (a, n)

# Test simple
res, nbreEtape = pgcdBoucle(25,30)

print res
print "Nombre de divisions effectuées : ", str(nbreEtape)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.


Reply via email to