Re: [sage-support] using n.factor()

2010-02-07 Thread Alex Ghitza
On Sun, 7 Feb 2010 15:17:08 -0800 (PST), davedo2 wrote: > I want to run a range of numbers through the factor() function and if > I run a loop through a list as in: > for i in [25,37,205]: > print i.factor() > it works fine, but if I try > for i in range(1,5): > print i.factor() > I get th

Re: [sage-support] using n.factor()

2010-02-07 Thread Jaap Spies
davedo2 wrote: I want to run a range of numbers through the factor() function and if I run a loop through a list as in: for i in [25,37,205]: print i.factor() it works fine, but if I try for i in range(1,5): print i.factor() I get the error message 'int' object has no attribute 'factor'

Re: [sage-support] using n.factor()

2010-02-07 Thread William Stein
On Sun, Feb 7, 2010 at 3:17 PM, davedo2 wrote: > I want to run a range of numbers through the factor() function and if > I run a loop through a list as in: > for i in [25,37,205]: >    print i.factor() > it works fine, but if I try > for i in range(1,5): >    print i.factor() > I get the error mes

[sage-support] using n.factor()

2010-02-07 Thread davedo2
I want to run a range of numbers through the factor() function and if I run a loop through a list as in: for i in [25,37,205]: print i.factor() it works fine, but if I try for i in range(1,5): print i.factor() I get the error message 'int' object has no attribute 'factor' - how do I get fac