Close Menu
Ztoog
    What's Hot
    Science

    The UK Is a Hot Country. It’s Time to Build Like It | WIRED

    AI

    Want to design the car of the future? Here are 8,000 designs to get you started. | Ztoog

    Technology

    Apple launches new Mac Studio with M2 Max and M2 Ultra chips

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

      Any wall can be turned into a camera to see around corners

      JD Vance and President Trump’s Sons Hype Bitcoin at Las Vegas Conference

      AI may already be shrinking entry-level jobs in tech, new research suggests

      Today’s NYT Strands Hints, Answer and Help for May 26 #449

      LiberNovo Omni: The World’s First Dynamic Ergonomic Chair

    • Technology

      A Replit employee details a critical security flaw in web apps created using AI-powered app builder Lovable that exposes API keys and personal info of app users (Reed Albergotti/Semafor)

      Gemini in Google Drive can now help you skip watching that painfully long Zoom meeting

      Apple iPhone exports from China to the US fall 76% as India output surges

      Today’s NYT Wordle Hints, Answer and Help for May 26, #1437

      5 Skills Kids (and Adults) Need in an AI World – O’Reilly

    • Gadgets

      Future-proof your career by mastering AI skills for just $20

      8 Best Vegan Meal Delivery Services and Kits (2025), Tested and Reviewed

      Google Home is getting deeper Gemini integration and a new widget

      Google Announces AI Ultra Subscription Plan With Premium Features

      Google shows off Android XR-based glasses, announces Warby Parker team-up

    • Mobile

      Deals: the Galaxy S25 series comes with a free tablet, Google Pixels heavily discounted

      Microsoft is done being subtle – this new tool screams “upgrade now”

      Wallpaper Wednesday: Android wallpapers 2025-05-28

      Google can make smart glasses accessible with Warby Parker, Gentle Monster deals

      vivo T4 Ultra specs leak

    • Science

      Analysts Say Trump Trade Wars Would Harm the Entire US Energy Sector, From Oil to Solar

      Do we have free will? Quantum experiments may soon reveal the answer

      Was Planet Nine exiled from the solar system as a baby?

      How farmers can help rescue water-loving birds

      A trip to the farm where loofahs grow on vines

    • AI

      Rationale engineering generates a compact new tool for gene therapy | Ztoog

      The AI Hype Index: College students are hooked on ChatGPT

      Learning how to predict rare kinds of failures | Ztoog

      Anthropic’s new hybrid AI model can work on tasks autonomously for hours at a time

      AI learns how vision and sound are connected, without human intervention | Ztoog

    • Crypto

      GameStop bought $500 million of bitcoin

      CoinW Teams Up with Superteam Europe to Conclude Solana Hackathon and Accelerate Web3 Innovation in Europe

      Ethereum Net Flows Turn Negative As Bulls Push For $3,500

      Bitcoin’s Power Compared To Nuclear Reactor By Brazilian Business Leader

      Senate advances GENIUS Act after cloture vote passes

    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

    A Replit employee details a critical security flaw in web apps created using AI-powered app builder Lovable that exposes API keys and personal info of app users (Reed Albergotti/Semafor)

    Technology

    Gemini in Google Drive can now help you skip watching that painfully long Zoom meeting

    Technology

    Apple iPhone exports from China to the US fall 76% as India output surges

    Technology

    Today’s NYT Wordle Hints, Answer and Help for May 26, #1437

    Technology

    5 Skills Kids (and Adults) Need in an AI World – O’Reilly

    Technology

    How To Come Back After A Layoff

    Technology

    Are Democrats fumbling a golden opportunity?

    Technology

    Crypto elite increasingly worried about their personal safety

    Leave A Reply Cancel Reply

    Follow Us
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    Top Posts
    Mobile

    Next iPhone SE coming in 2025 with OLED screen borrowed from the iPhone 14

    Apple has launched its final inexpensive iPhone SE in 2022, and the earlier one earlier…

    Crypto

    Analyst Thinks Ethereum Will Explode To $15,000, Cites Favorable Technical Formation

    A crypto analyst, Elja on X, predicts that Ethereum (ETH) will attain a staggering $15,000 by…

    AI

    Meta AI Releases Nougat: A Visual Transformer Model that Performs OCR for Processing Scientific Documents into a Markup Language

    With the rising developments within the area of Artificial Intelligence, its sub-fields, together with Natural…

    Gadgets

    Apple changes course, will keep iPhone EU web apps how they are in iOS 17.4

    Enlarge / EU laws has pushed quite a lot of changes beforehand thought unthinkable in…

    Mobile

    Google Pixels and foldables shine in MKBHD’s blind smartphone camera test

    What it is advisable knowMarques Brownlee launched the outcomes for his annual blind smartphone camera…

    Our Picks
    AI

    DeepMind’s cofounder: Generative AI is just a phase. What’s next is interactive AI.

    Mobile

    YouTube Premium and Music Premium come to more countries

    Technology

    Paytm tops $977 million revenue in a year, narrows loss

    Categories
    • AI (1,493)
    • Crypto (1,753)
    • Gadgets (1,805)
    • Mobile (1,851)
    • Science (1,866)
    • Technology (1,802)
    • The Future (1,648)
    Most Popular
    Mobile

    Is the Galaxy S24 Ultra the ‘peak’ of smartphone design?

    AI

    This AI Research from Stanford Discusses Backtracing and Retrieving the Cause of the Query

    The Future

    How Corporate Video Production Agencies Are Revolutionising Traditional Marketing

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

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