• kromem@lemmy.world
    link
    fedilink
    English
    arrow-up
    39
    arrow-down
    1
    ·
    5 months ago

    Inefficient solution.

    You should simplify it to just ask the model if the last bit of the binary representation of the integer is a 1 or a 0.

    • Natanael@slrpnk.net
      link
      fedilink
      arrow-up
      6
      ·
      5 months ago

      They don’t process inputs as binary (they use clusters of symbols, i.e. letter groups) so that’s not guaranteed to work

          • kromem@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            5 months ago

            Well, in the sake of pointing things out, GPT-4 can actually correctly answer the prompt, because it arrives at it in the opposite direction. It can tell the integer is even or odd and knows that even or odd integers in binary end in 0 or 1 respectively.