Everyone knows sage has no bugs.

Appears to me the following program should use
O(1) memory.

Watching memory usage in top(1), the proggie uses
3GB ram in less than a minute and memory usage
increases constantly.

Is there something wrong with the program?

While I am still using sage, is there a workaround
for this ``feature''?

Program:

def wief():
        """
        2^(n-1) \equiv 1 \mod n^2
        not necessarily prime
        """
        n=2
        while n<10**20:
                K=IntegerModRing(n**2)
                if K(2)**(n-1)==1:
                        print n
                n += 1

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to