On Sat, Jan 31, 2009 at 11:15 AM, Rolandb <rola...@planet.nl> wrote:
>
> Hi,
>
> I received first a MemoryError, and later on Sage reported:

That means that Sage ran out of memory.  It's not a bug -- it's just a
limitation of your computer.

> /usr/local/sage/local/bin/sage-sage: line 358: 10172
> Killed
> python "$@"
>
> {{{id=59|
> uitkomst1=[]
> uitkomst2=[]
> eind=int((10^9+2)/(2*sqrt(3)))
> print eind
> for y in srange(1,eind):
>  test1=is_square(3*y^2+1,True)
>  test2=is_square(48*y^2+1,True)
>  if test1[0] and test1[1]%3==2: uitkomst1.append((y,(2*test1[1]-1)/3))
>  if test2[0] and test2[1]%3==1: uitkomst2.append((y,(2*test2[1]+1)/3))
> print uitkomst1
> een=sum([3*x-1 for (y,x) in uitkomst1 if 3*x-1<10^9])
> print uitkomst2
> twee=sum([3*x+1 for (y,x) in uitkomst2 if 3*x+1<10^9])
> print een+twee
> ///
> }}}
>
> If you replace 10^9 with 10^6, the above listing works properly.
>
> Maybe I made a mistake?
>
> Rolandb
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

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

Reply via email to