Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > [SPOILER] Re: E...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 10 Topic 4044 of 4065
Post > Topic >>

[SPOILER] Re: Euler problem #48

by mhx@[EMAIL PROTECTED] (Marcel Hendrix) May 9, 2008 at 07:13 PM

William James <w_a_x_man@[EMAIL PROTECTED]
> wrote Re: Euler problem #48

>> \ FORTH> euler48
>> \ The last ten digits of the series 1^1 + 2^2 + 3^3 + ... + 1000^1000
are xxxxxxxxxx
>> \ 0.011 seconds elapsed. ok

> In PARI/gp.  0 ms.  It yields more than 10 digits.

> sum(i=1,1000,lift( Mod(i,10^10)^i ) )

You mean, it calculates the wrong answer, faster?

Sum = Mod( sum(i=1,1000,lift( Mod(i,10^10)^i ) ), 10^10 )

Fixes that, surely.

-marcel




 10 Posts in Topic:
Euler problem #48
mhx@[EMAIL PROTECTED] (M  2008-05-07 22:55:35 
Re: Euler problem #48
Bernd Paysan <bernd.pa  2008-05-08 11:22:15 
Re: Euler problem #48
anton@[EMAIL PROTECTED]   2008-05-08 10:28:32 
Re: Euler problem #48
Thomas Pornin <pornin@  2008-05-08 14:18:40 
Re: Euler problem #48
Bernd Paysan <bernd.pa  2008-05-08 16:33:41 
Re: Euler problem #48
Albert van der Horst <  2008-05-09 02:08:35 
Re: Euler problem #48
Albert van der Horst <  2008-05-08 17:00:16 
Re: Euler problem #48
William James <w_a_x_m  2008-05-09 08:44:42 
[SPOILER] Re: Euler problem #48
mhx@[EMAIL PROTECTED] (M  2008-05-09 19:13:05 
Re: [SPOILER] Re: Euler problem #48
Albert van der Horst <  2008-05-09 22:07:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 3:26:19 CDT 2008.