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
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
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