Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Largest Number You've Computed?

Largest Number You've Computed?

Scheduled Pinned Locked Moved The Lounge
htmlcomquestion
53 Posts 17 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Thomas Daniels

    A TYPO when I copied this from a file??? :doh:

    The quick red ProgramFOX jumps right over the Lazy<Dog>.

    S Offline
    S Offline
    Septimus Hedgehog
    wrote on last edited by
    #31

    A rare talent, indeed! :-D

    If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.

    1 Reply Last reply
    0
    • M Matthew Dennis

      unless 21000000 - 1 is prime.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #32

      It isn't. Mersenne primes always have prime exponents.

      1 Reply Last reply
      0
      • M Matthew Dennis

        1000! see Calculate the Factorial of an Integer in C#[^]

        B Offline
        B Offline
        Bassam Abdul Baki
        wrote on last edited by
        #33

        Nice! Thank goodness for BigInteger.

        Web - BM - RSS - Math - LinkedIn

        1 Reply Last reply
        0
        • L Lost User

          The other one. Logarithmic number system.

          B Offline
          B Offline
          Bassam Abdul Baki
          wrote on last edited by
          #34

          I figured. But the other distracted me. :)

          Web - BM - RSS - Math - LinkedIn

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            Cluck, cluck, cluck! I know about infinite numbers and the phase space of integers, so this thread in theory could never end. ;)

            The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

            B Offline
            B Offline
            Bassam Abdul Baki
            wrote on last edited by
            #35

            Try counting from infinity backwards.

            Web - BM - RSS - Math - LinkedIn

            S 1 Reply Last reply
            0
            • B Bassam Abdul Baki

              Mine is: (165(43-1)/5+floor((43+3)/4)) % (1043) = 2,000,000,000,000,000,000,000,000,000,017,592,186,044,416

              Web - BM - RSS - Math - LinkedIn

              T Offline
              T Offline
              Thomas Daniels
              wrote on last edited by
              #36

              double.PositiveInfinity[^] A larger number isn't possible!

              The quick red ProgramFOX jumps right over the Lazy<Dog>.

              L 1 Reply Last reply
              0
              • T Thomas Daniels

                double.PositiveInfinity[^] A larger number isn't possible!

                The quick red ProgramFOX jumps right over the Lazy<Dog>.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #37

                That isn't a number!

                T 1 Reply Last reply
                0
                • L Lost User

                  That isn't a number!

                  T Offline
                  T Offline
                  Thomas Daniels
                  wrote on last edited by
                  #38

                  Oops! :sigh:

                  The quick red ProgramFOX jumps right over the Lazy<Dog>.

                  1 Reply Last reply
                  0
                  • B Bassam Abdul Baki

                    Mine is: (165(43-1)/5+floor((43+3)/4)) % (1043) = 2,000,000,000,000,000,000,000,000,000,017,592,186,044,416

                    Web - BM - RSS - Math - LinkedIn

                    W Offline
                    W Offline
                    wizardzz
                    wrote on last edited by
                    #39

                    I'm not done yet, but I think my wedding bill is getting there.

                    Twitter[^]

                    1 Reply Last reply
                    0
                    • B Bassam Abdul Baki

                      Mine is: (165(43-1)/5+floor((43+3)/4)) % (1043) = 2,000,000,000,000,000,000,000,000,000,017,592,186,044,416

                      Web - BM - RSS - Math - LinkedIn

                      H Offline
                      H Offline
                      H Brydon
                      wrote on last edited by
                      #40

                      When I was in college, we had a professor who had an interest in large primes. Out of a 4 x 8 sheet of plywood, we made him a giant "2" and presented it to him as an award for something. Does that count?

                      -- Harvey

                      1 Reply Last reply
                      0
                      • B Bassam Abdul Baki

                        Try counting from infinity backwards.

                        Web - BM - RSS - Math - LinkedIn

                        S Offline
                        S Offline
                        Septimus Hedgehog
                        wrote on last edited by
                        #41

                        I tried. But there's nothing out there.

                        If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.

                        1 Reply Last reply
                        0
                        • B Bassam Abdul Baki

                          Mine is: (165(43-1)/5+floor((43+3)/4)) % (1043) = 2,000,000,000,000,000,000,000,000,000,017,592,186,044,416

                          Web - BM - RSS - Math - LinkedIn

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #42

                          I just computed the number of solutions (all solutions, not optimal ones) to the problem where this[^] was a solution (ie all coverings of the yellow cells with rectangles): 45784610596850816446599940930767916773480082964755799235445406076489339495199306 75894632264393946366064079016685237062250355511270045107847351110104043603327350 40030852263702858067598184403524385716937791795799506954654612463217212201690360 70982548681649300109601170578438603135655410339180977750692518018138012707693373 7505003365

                          1 Reply Last reply
                          0
                          • B Bassam Abdul Baki

                            Mine is: (165(43-1)/5+floor((43+3)/4)) % (1043) = 2,000,000,000,000,000,000,000,000,000,017,592,186,044,416

                            Web - BM - RSS - Math - LinkedIn

                            M Offline
                            M Offline
                            M dHatter
                            wrote on last edited by
                            #43

                            ∞

                            Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitates lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock, and as it always has, rock crushes scissors. :)

                            1 Reply Last reply
                            0
                            • T Thomas Daniels

                              Mine is 21000000 = 990065622929589825069792361630190325073362424178756733286639611453170948330948610305461455123464839148243150703458372388351065898941631492742256503157
                              290537231486937723287177549471366423897012584291448961471633841218863110379239805600774013627096055307053866717981233606159217927983273223643032286260
                              657430925691627858204283477200179449319005699514097510312526917394308961549314037842917671378079314795335742413161419492526463227046103105187267154344
                              632641553473282832884447626296639136101211942402510061343171652494945923275717722078109541163555632428562340139984401887212634039300347838271450001526
                              392320229012258910617229037066549822325526657074236467887628194407017819696756431326847303952947178641997730586792287821993064882303345065034596791221
                              523917555109275792203031674436344448176066521739250004626157456128525019107868885598538239591091028190475243782716932214211421239270034563950381235350
                              250311913322903570226372145672473702885218372967386543992665597857777244114711353422981871296063602342124838258072006674958033769065568092701436494004
                              477009798690062991574175490539021387229485951252745725843568693057429433187614880421258707050812109898106730960167331185511905319779689488277502333385
                              474039969174297188347576501021741278616607099138092026138181452968788842443522745722745810165356085948274800465038541381311864512793104409239664167647
                              305300960726816519669985583163924960253450803846226233415060476114953790220372111150760791409757457811339576926357615128826298343155141561825405071450
                              904969083569388243735037481368023790147322348964585936303091759379661486590792723567562062512969942701635647821602243367290434480760695218467382876202
                              927505824801529327493139658189985726667946143330659374336411381369262781055355514131860918961486402974778748508880160549702100345096024678742308819273
                              864162687251086992052277838707721304863610277948260856068796303905192240404646526613218905951232308872556447960474634162686268424027614311225363893314
                              258584609856383663203743877595505420097881377604232631662861910232459811384130060375377599339095227698245547651813789858771307842530857133022525317891
                              706868320941956052983552025902312629000323359271093979298894441465209382549702488057799005048947430386674809060826724550174964284440016934381319170930
                              839460354802896300645462227312779510715620237407643842490106080569307994163555798117162487871389746620126265220437895560389868814118422427995261241125
                              57747242833872593994076404

                              M Offline
                              M Offline
                              Member 4194593
                              wrote on last edited by
                              #44

                              With my bignum functions, I limited the usable size to 63356 bits (8192 BYTES or 2048 DWORDS), however the code can be expanded to hold the BIT count of a number in a DWORD. These functions include ADD, SUB, MUL, DIV, SQRT, AND, OR, XOR, Input long number (any base 2 to 64) and export any number (any base 2 to 64). OBTW they are fast - in MASM. Dave.

                              1 Reply Last reply
                              0
                              • R Ravi Bhavnani

                                The largest number I tried to compute <edit>(in .NET 3.5)</edit> was Int64.MaxValue + 1.  :) /ravi

                                My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                                T Offline
                                T Offline
                                Thomas Daniels
                                wrote on last edited by
                                #45

                                Easy!

                                UInt64 i = (ulong)Int64.MaxValue + 1;

                                The quick red ProgramFOX jumps right over the Lazy<Dog>.

                                R 1 Reply Last reply
                                0
                                • T Thomas Daniels

                                  Easy!

                                  UInt64 i = (ulong)Int64.MaxValue + 1;

                                  The quick red ProgramFOX jumps right over the Lazy<Dog>.

                                  R Offline
                                  R Offline
                                  Ravi Bhavnani
                                  wrote on last edited by
                                  #46

                                  True.  If you want to lose half the range of possible values. :) /ravi

                                  My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                                  1 Reply Last reply
                                  0
                                  • R Ravi Bhavnani

                                    Sorry, I forgot to add "in .NET 3.5".  :) /ravi

                                    My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                                    Richard DeemingR Offline
                                    Richard DeemingR Offline
                                    Richard Deeming
                                    wrote on last edited by
                                    #47

                                    Easy: this version[^] works in .NET 1.0! ;P


                                    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                                    "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                                    R 1 Reply Last reply
                                    0
                                    • Richard DeemingR Richard Deeming

                                      Easy: this version[^] works in .NET 1.0! ;P


                                      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                                      R Offline
                                      R Offline
                                      Ravi Bhavnani
                                      wrote on last edited by
                                      #48

                                      :thumbsup: +5 /ravi

                                      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                                      1 Reply Last reply
                                      0
                                      • OriginalGriffO OriginalGriff

                                        I really wish you'd put that in a code block so it could be collapsed... ;)

                                        The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                                        T Offline
                                        T Offline
                                        Thomas Daniels
                                        wrote on last edited by
                                        #49

                                        By the way, a code block can't be collapsed in messages, only in questions, answers and articles.

                                        The quick red ProgramFOX jumps right over the Lazy<Dog>.

                                        OriginalGriffO 1 Reply Last reply
                                        0
                                        • T Thomas Daniels

                                          By the way, a code block can't be collapsed in messages, only in questions, answers and articles.

                                          The quick red ProgramFOX jumps right over the Lazy<Dog>.

                                          OriginalGriffO Offline
                                          OriginalGriffO Offline
                                          OriginalGriff
                                          wrote on last edited by
                                          #50

                                          Stupid! If you can collapse them in one place, you should be able to collapse in all. Sometimes, I get teh feeling there are too many different codes for doing the same thing on this site... :laugh:

                                          The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                                          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                          T 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups