Re: [Tutor] Project Euler Problem 6

2008-04-24 Thread joe gallo
It says: Find the difference between the sum of the squares of the first * one hundred* natural numbers and the square of the sum. You did range(1,111). On Thu, Apr 24, 2008 at 1:13 PM, kinuthia muchane <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to solve problem 6 on the Project Euler, bu

Re: [Tutor] Project Euler Problem 6

2008-04-24 Thread Steve Willoughby
On Thu, Apr 24, 2008 at 11:13:31PM +0300, kinuthia muchane wrote: > return sum([k*k for k in range(1,111)])# sum of the squares of the > first one hundred numbers Wouldn't the first hundred numbers be range(1,101)? > def aux1(): > inter = sum([k for k in range(1,111))# square of the s

[Tutor] Project Euler Problem 6

2008-04-24 Thread kinuthia muchane
Hi, I am trying to solve problem 6 on the Project Euler, but when I submit my answer, I am told that it is wrong. Here is the problem: The sum of the squares of the first ten natural numbers is, 1² + 2² + ... + 10² = 385 The square of the sum of the first ten natural num