Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.programming Subject: Re: really? (lame question about primes) Date: Wed, 02 Sep 2015 16:49:48 +0100 Organization: A noiseless patient Spider Lines: 32 Message-ID: <877fo8izxf.fsf@bsb.me.uk> References: <5e5de47a-7353-4ffc-9f5d-ec083d1d63ba@googlegroups.com> <44a165dc-8447-4ae0-8695-557a7ddf00cf@googlegroups.com> <_RfFx.418341$bt.398932@fx32.am4> <5954b4ea-b6af-4216-a288-66301d20c67a@googlegroups.com> <4xpFx.791070$sY7.495062@fx30.am4> <9991fe20-bfea-48e1-9c44-3e4ca2f822e7@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="4186"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/539sPNC43PLRVUZrOmntMEX6DXdac5cA=" Cancel-Lock: sha1:62sHl8vohll3ndUcPiZWTMpUyQA= sha1:YqvDLvBGviflQE5a7LVyplVs4fo= X-BSB-Auth: 1.0d034e63e55e78449b1e.20150902164948BST.877fo8izxf.fsf@bsb.me.uk Xref: csiph.com comp.programming:5725 Richard Heathfield writes: > On 02/09/2015 13:42, James Dow Allen wrote: >> I'll be impressed by whoever is first to factor this number >> 6666666666666666666666666666666664295863450544367679162527001239842359 >> (Please tell us how you did it.) > > Ben posted his answer before I'd even read the question! It's a shame > that his embarrassment prevents him from revealing his method, but > perhaps it's for the best - if he explained, we would say (just as > Watson said after Holmes had explained a deduction) "Oh, how absurdly > simple!" So let's just applaud Ben and spare him his blushes. It's embarrassing only because I did nothing interesting. I ran 'gp' and typed factor(6666666666666666666666666666666664295863450544367679162527001239842359) at the prompt just to see if it could, and after minute or two it replied: %1 = [67499999992406250000094921874999003 1] [98765432109876543210987654321098453 1] (the 1s because it shows a list of primes and powers). It would be so much better if I could have talked about elliptic curves and number field sieves so as to appear wise. Oh look, I just did! -- Ben.