Close Menu
Ztoog
    What's Hot
    Crypto

    Clinton Vs. Novogratz In Heated War Of Words

    Science

    Are we in a space race again?

    Crypto

    Report Says Ethereum Is Trading Well Below Fair Value, What’s The Correct Figure?

    Important Pages:
    • About Us
    • Contact us
    • Privacy Policy
    • Terms & Conditions
    Facebook X (Twitter) Instagram Pinterest
    Facebook X (Twitter) Instagram Pinterest
    Ztoog
    • Home
    • The Future

      What is Project Management? 5 Best Tools that You Can Try

      Operational excellence strategy and continuous improvement

      Hannah Fry: AI isn’t as powerful as we think

      FanDuel goes all in on responsible gaming push with new Play with a Plan campaign

      Gettyimages.com Is the Best Website on the Internet Right Now

    • Technology

      Iran war: How could it end?

      Democratic senators question CFTC staffing cuts in Chicago enforcement office

      Google’s Cloud AI lead on the three frontiers of model capability

      AMD agrees to backstop a $300M loan from Goldman Sachs for Crusoe to buy AMD AI chips, the first known case of AMD chips used as debt collateral (The Information)

      Productivity apps failed me when I needed them most

    • Gadgets

      macOS Tahoe 26.3.1 update will “upgrade” your M5’s CPU to new “super” cores

      Lenovo Shows Off a ThinkBook Modular AI PC Concept With Swappable Ports and Detachable Displays at MWC 2026

      POCO M8 Review: The Ultimate Budget Smartphone With Some Cons

      The Mission: Impossible of SSDs has arrived with a fingerprint lock

      6 Best Phones With Headphone Jacks (2026), Tested and Reviewed

    • Mobile

      Android’s March update is all about finding people, apps, and your missing bags

      Watch Xiaomi’s global launch event live here

      Our poll shows what buyers actually care about in new smartphones (Hint: it’s not AI)

      Is Strava down for you? You’re not alone

      The Motorola Razr FIFA World Cup 2026 Edition was literally just unveiled, and Verizon is already giving them away

    • Science

      Big Tech Signs White House Data Center Pledge With Good Optics and Little Substance

      Inside the best dark matter detector ever built

      NASA’s Artemis moon exploration programme is getting a major makeover

      Scientists crack the case of “screeching” Scotch tape

      Blue-faced, puffy-lipped monkey scores a rare conservation win

    • AI

      Online harassment is entering its AI era

      Meet NullClaw: The 678 KB Zig AI Agent Framework Running on 1 MB RAM and Booting in Two Milliseconds

      New method could increase LLM training efficiency | Ztoog

      The human work behind humanoid robots is being hidden

      NVIDIA Releases DreamDojo: An Open-Source Robot World Model Trained on 44,711 Hours of Real-World Human Video Data

    • Crypto

      Google paid startup Form Energy $1B for its massive 100-hour battery

      Ethereum Breakout Alert: Corrective Channel Flip Sparks Impulsive Wave

      Show Your ID Or No Deal

      Jane Street sued for alleged front-running trades that accelerated Terraform Labs meltdown

      Bitcoin Trades Below ETF Cost-Basis As MVRV Signals Mounting Pressure

    Ztoog
    Home » Getting the Right Answer from ChatGPT – O’Reilly
    Technology

    Getting the Right Answer from ChatGPT – O’Reilly

    Facebook Twitter Pinterest WhatsApp
    Getting the Right Answer from ChatGPT – O’Reilly
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp

    A few days in the past, I used to be fascinated about what you wanted to know to make use of ChatGPT (or Bing/Sydney, or any comparable service). It’s straightforward to ask it questions, however everyone knows that these massive language fashions continuously generate false solutions. Which raises the query: If I ask ChatGPT one thing, how a lot do I have to know to find out whether or not the reply is appropriate?

    So I did a fast experiment. As a brief programming venture, a variety of years in the past I made an inventory of all the prime numbers lower than 100 million. I used this record to create a 16-digit quantity that was the product of two 8-digit primes (99999787 instances 99999821 is 9999960800038127). I then requested ChatGPT whether or not this quantity was prime, and the way it decided whether or not the quantity was prime.



    Learn quicker. Dig deeper. See farther.

    ChatGPT appropriately answered that this quantity was not prime. This is considerably stunning as a result of, for those who’ve learn a lot about ChatGPT, you realize that math isn’t one in all its robust factors. (There’s in all probability an enormous record of prime numbers someplace in its coaching set.) However, its reasoning was incorrect–and that’s much more fascinating. ChatGPT gave me a bunch of Python code that carried out the Miller-Rabin primality take a look at, and stated that my quantity was divisible by 29. The code as given had a few primary syntactic errors–however that wasn’t the solely drawback. First, 9999960800038127 isn’t divisible by 29 (I’ll allow you to show this to your self). After fixing the apparent errors, the Python code appeared like an accurate implementation of Miller-Rabin–however the quantity that Miller-Rabin outputs isn’t an element, it’s a “witness” that attests to the reality the quantity you’re testing isn’t prime. The quantity it outputs additionally isn’t 29. So ChatGPT didn’t really run the program; not stunning, many commentators have famous that ChatGPT doesn’t run the code that it writes. It additionally misunderstood what the algorithm does and what its output means, and that’s a extra critical error.

    I then requested it to rethink the rationale for its earlier reply, and received a really well mannered apology for being incorrect, along with a unique Python program. This program was appropriate from the begin. It was a brute-force primality take a look at that attempted every integer (each odd and even!) smaller than the sq. root of the quantity underneath take a look at. Neither elegant nor performant, however appropriate. But once more, as a result of ChatGPT doesn’t really run the program, it gave me a brand new record of “prime factors”–none of which have been appropriate. Interestingly, it included its anticipated (and incorrect) output in the code:

          n = 9999960800038127
          components = factorize(n)
          print(components) # prints [193, 518401, 3215031751]

    I’m not claiming that ChatGPT is ineffective–far from it. It’s good at suggesting methods to resolve an issue, and might lead you to the proper answer, whether or not or not it provides you an accurate reply. Miller-Rabin is fascinating; I knew it existed, however wouldn’t have bothered to look it up if I wasn’t prompted. (That’s a pleasant irony: I used to be successfully prompted by ChatGPT.)

    Getting again to the unique query: ChatGPT is nice at offering “answers” to questions, but when you should know that a solution is appropriate, you have to both be able to fixing the drawback your self, or doing the analysis you’d want to resolve that drawback. That’s in all probability a win, however it’s a must to be cautious. Don’t put ChatGPT in conditions the place correctness is a matter except you’re prepared and capable of do the exhausting work your self.

    Share. Facebook Twitter Pinterest LinkedIn WhatsApp

    Related Posts

    Technology

    Iran war: How could it end?

    Technology

    Democratic senators question CFTC staffing cuts in Chicago enforcement office

    Technology

    Google’s Cloud AI lead on the three frontiers of model capability

    Technology

    AMD agrees to backstop a $300M loan from Goldman Sachs for Crusoe to buy AMD AI chips, the first known case of AMD chips used as debt collateral (The Information)

    Technology

    Productivity apps failed me when I needed them most

    Technology

    Makers are turning discarded vapes into tiny musical instruments

    Technology

    Best 85-Inch TV for 2026

    Technology

    Breaking Boundaries in Wireless Communication: Simulating Animated, On-Body RF Propagation

    Leave A Reply Cancel Reply

    Follow Us
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    Top Posts
    The Future

    Disney vs. DeSantis Update: Florida Feud Background, Updates

    As the battle between Disney and Florida Governor Ron DeSantis continues to notch common updates,…

    Crypto

    Ethereum (ETH) Beacon Chain Shatters Records With $7.7 Billion Inflows

    Ethereum’s (ETH) Beacon Chain has seen important inflows since staking withdrawals had been enabled on…

    Science

    NASA’s Vulcan launch: The Peregrine lunar lander may not make it to the moon

    An image from Peregrine displaying a disturbance of the insulation in the foregroundAstrobotic Things are…

    Science

    How and where to see the 2023 Orionid meteor shower peak this weekend

    The Orionids, seen over Daqing in Heilongjiang province, China, on 22 October 2020Sipa US /…

    Technology

    Video Friday: Agile but Safe

    Video Friday is your weekly number of superior robotics movies, collected by your pals at…

    Our Picks
    Gadgets

    Access limitless learning with these three highly-rated e-learning platforms, now under $130

    Science

    What if your pair of skis was made from the stern of a ship? Recycled fiberglass is here

    Technology

    6 common Google Chat scams and how to avoid them

    Categories
    • AI (1,560)
    • Crypto (1,826)
    • Gadgets (1,870)
    • Mobile (1,910)
    • Science (1,939)
    • Technology (1,862)
    • The Future (1,716)
    Most Popular
    Gadgets

    Take advantage of Memorial Day discounts on Microsoft Windows 11

    Mobile

    Bug affecting Android version of WhatsApp causes it to crash when a certain message is received

    AI

    Success at the intersection of technology and finance | Ztoog

    Ztoog
    Facebook X (Twitter) Instagram Pinterest
    • Home
    • About Us
    • Contact us
    • Privacy Policy
    • Terms & Conditions
    © 2026 Ztoog.

    Type above and press Enter to search. Press Esc to cancel.