Project Euler
Bob Sneidar
bobs at twft.com
Tue Feb 23 12:05:28 EST 2010
I was just about to say the same thing! ;-) Mark, you should post your solution, and quick! Otherwise Andre is going to do it! (j/k)
Bob
On Feb 23, 2010, at 8:49 AM, Mark Schonewille wrote:
> Andre,
>
> on mouseUp
> put "0,1" into mySequence
> put 0 into mySum
> repeat
> put the last item of mySequence into myCurrentNumber
> if myCurrentNumber < 4E6 then
> if myCurrentNumber mod 2 is 0 then add myCurrentNumber to mySum
> put myCurrentNumber & comma & (item 1 of mySequence + myCurrentNumber) into mySequence
> else exit repeat
> end repeat
> put mySum
> end mouseUp
>
> --
> Best regards,
>
> Mark Schonewille
More information about the use-livecode
mailing list