From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: The next exercise Date: Fri, 9 Dec 2022 20:42:13 +0100 Message-ID: References: <87tu24tmv6.fsf@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2hu9mt0lzSebX4cE" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34434"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 09 20:42:43 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p3jGd-0008kR-EP for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 09 Dec 2022 20:42:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3jGW-0003FQ-Fy; Fri, 09 Dec 2022 14:42:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3jGP-0003E0-3Y for help-gnu-emacs@gnu.org; Fri, 09 Dec 2022 14:42:30 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3jGB-0007MT-S2 for help-gnu-emacs@gnu.org; Fri, 09 Dec 2022 14:42:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=qghUJeA91Ze5lXL4vmJlsy0fIT+EeQkx7a0RCNL7xyI=; b=oWjWapnz4E6+6DgioWsfTdDwQZ nzddpIuPoMoBp7Q9rcjL4WTsEJkgh+pd6qI7Hx6OKf1VFYq+HVcdvOVPax7ZMFd/vLiFmG8DfOq+n I5fUKpcHWQNwSWTFdwgwMTkgB91aShu2THaefDooO9pJWhRbZEa35rvMT8oY+uccmv/xuHPX/kQqu B6WcoWQ7HBNknwL2+3uqbn9ltjckelO5HabZe7Evgd0zN0mYh9X0KE9hPrHO6nL/6vRl1t1tHtbnF lgUL7IA5GQ1pTNID2DmJfl27yGG20Kf8YaW8M2x//J/Sc+zOD2m46Hg8i67ZCMiz3u/+GF+Qz8Wki u5+3w+dQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1p3jG9-0001K1-C7 for help-gnu-emacs@gnu.org; Fri, 09 Dec 2022 20:42:13 +0100 Content-Disposition: inline In-Reply-To: <87tu24tmv6.fsf@web.de> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141523 Archived-At: --2hu9mt0lzSebX4cE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 09, 2022 at 08:09:49PM +0100, Michael Heerdegen wrote: > Hello, >=20 > 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?): >=20 > The first three decimal digits (from the left) of 1001^1000 - i.e. one > thousand and one to the one thousand's power, >=20 > 1001*1001*...*1001 > \________________/ > ^ > 1000 factors >=20 > are of course: >=20 > (a) 2 7 1, the first three digits of Euler's number e >=20 > (b) 3 1 4, the first three digits of the mathematical constant pi >=20 > (c) 1 0 0, or >=20 > (d) none of these >=20 > 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 --=20 t --2hu9mt0lzSebX4cE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCY5OPjwAKCRAFyCz1etHa Ru77AJ9bcKnRF9KHTnT4dXoRpuaTP0J6DACdHWRngiY1bKfVcPltk7bcM9lgR1Y= =5mQO -----END PGP SIGNATURE----- --2hu9mt0lzSebX4cE--