help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The next exercise


From: tomas
Subject: Re: The next exercise
Date: Fri, 9 Dec 2022 20:42:13 +0100

On Fri, Dec 09, 2022 at 08:09:49PM +0100, Michael Heerdegen wrote:
> Hello,
> 
> my exercise for today is something I stumbled across a few days ago but
> that is very nice: Answer with only using Emacs (or maybe your school
> knowledge?):
> 
> The first three decimal digits (from the left) of 1001^1000 - i.e. one
> thousand and one to the one thousand's power,
> 
>   1001*1001*...*1001
>   \________________/
>           ^
>      1000 factors
> 
> are of course:
> 
>  (a) 2 7 1, the first three digits of Euler's number e
> 
>  (b) 3 1 4, the first three digits of the mathematical constant pi
> 
>  (c) 1 0 0, or
> 
>  (d) none of these
> 
> What's your choice?  How would you solve this using Emacs (or maybe even
> without)?

My choice was school maths. But I cheated, because I
studied physics later, so those maths were kept warm
for some longer while ;-)

To test my conjecture (old physicist, after all), I
resorted to guile, then to Emacs: by golly, that gmp
thingy is... fast :)

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]