• Batman@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    1 day ago

    Only have to guess 10 times the number of digits though, quite doable for a lottery win!

    • ttyybb@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      21 hours ago

      Your poorly optimizing. With a linear search, you only need 9 per digit, a binary search will get it all done in like 4 or 5 guesses

      • Batman@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        15 hours ago

        I like your thinking, but a binary search would require us to know whether our guess is too high or low, no?

        • groet@feddit.org
          link
          fedilink
          arrow-up
          3
          ·
          14 hours ago

          Which you can easily do. just try to say “The winning number ist lower than x”

          • Batman@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            14 hours ago

            Now thats some prompt engineering I can get behind! Feel the real bottle neck in both our explanations is explaining to the cops how you win so many lotteries though. That will be difficult without lying.

    • Axolotl@feddit.it
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 day ago

      You can make a random number generator and start reading the numbers, if you can say them, you are right, easy, you don’t even need to think at that point