Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:number': 0.09; 'python': 0.11; '2.7': 0.14; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:skip:m 10': 0.16; 'bit': 0.19; 'url:home': 0.24; 'paul': 0.24; 'code:': 0.26; 'header:X-Complaints-To:1': 0.27; 'skip:p 30': 0.29; '-0700,': 0.31; "d'aprano": 0.31; 'writes:': 0.31; 'subject:all': 0.32; 'fri,': 0.33; 'charset:us-ascii': 0.36; 'seconds': 0.37; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; '2015': 0.84; 'subject:find': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: find all multiplicands and multipliers for a number Date: Sat, 11 Apr 2015 12:37:19 -0400 Organization: IISS Elusive Unicorn References: <890bd388-f50a-4dec-9ef5-27715427472a@googlegroups.com> <55288135$0$12997$c3e8da3$5496439d@news.astraweb.com> <87egnrb3il.fsf@jester.gateway.sonic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-79-223-87.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1428770262 news.xs4all.nl 2851 [2001:888:2000:d::a6]:57452 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:88829 On Fri, 10 Apr 2015 23:08:50 -0700, Paul Rubin declaimed the following: >Steven D'Aprano writes: >> It may be a bit slow for very large numbers. On my computer, this takes 20 >> seconds: >> py> pyprimes.factors.factorise(2**111+1) >> [3, 3, 1777, 3331, 17539, 25781083, 107775231312019L] > >This takes about 4 seconds on a Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz >laptop (64 bit linux): > >pythonw -u "junk.py" [3, 3, 1777, 3331, 17539, 25781083, 107775231312019L] 3.55100011826 >Exit code: 0 Win7Pro-64, i7-3770 @ 3.40GHz; Python 2.7 -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/