Skip to main content

Beware: Those who use chatGPT for their exams or work!

ChatGPT struggles with prime numbers!

While trying to understand how the public private key cryptographic architecture works using chatGPT, I asked what is a coprime number after chatgpt explained its use in the said architecture. Here is the response in all its glory:

Two numbers are said to be coprime (or relatively prime) if they have no common prime factors other than 1. In other words, their greatest common divisor (GCD) is 1.

For example:

  • 8 and 15 are coprime because their only common factor is 1.
  • 14 and 15 are coprime because they share no common factors other than 1.
  • 10 and 21 are not coprime because they both have 1 as a common factor.

Looking at the first and then the last example which is supposed to be a counter-example as to what is not a coprime number, we can clearly see that chatgpt gives the same reason for each case i.e they only have 1 as a common factor. After further investigation, chatgpt replies:

Apologies for the confusion. You're correct. 10 and 21 do not have 1 as their greatest common divisor (GCD).

Let's clarify this:

  • The factors of 10 are 1, 2, 5, and 10.
  • The factors of 21 are 1, 3, 7, and 21.

The only common factor between them is 1. Hence, 10 and 21 are indeed coprime.

Thank you for pointing out the oversight.

So he changed his answer that 10 & 21 are coprime, but then I asked if 'it' knows if 3 and 6 are coprime, here is the response once again:

No, 3 and 6 are not coprime.

The factors of 3 are 1 and 3. The factors of 6 are 1, 2, 3, and 6.

Their only common factor is 1. Therefore, they are coprime.

Thank you for your patience, and I apologize for the oversight. If you have any more questions or need further clarification, please feel free to ask.

 It is contradicting itself, initially 3 and 6 are not coprime, it also knows that the greatest common divisor has to be 1 for co prime numbers, it also knows the factors of the numbers correctly but it then suggests that 3 and 6 are coprime simple because they have 1 as common factor. 

As I wrote this blog, initially I considered chatgpt as a 'he' which many people probably assume it as, but after seeing the contradictory statements, it is nothing but a machine making the same mistake over and over. 3 and 6 are not coprime because they have a factor of 3 which is the greatest common divisor.

Rest assured, if your job or any task revolves around doing the same thing over and over then it can and will be replaced by a machine. Something a machine does very well is repetition whether the instruction is right or wrong is up to the human instructing the machine. 

Even today, AI is unable to think. The only difference today is that a human being is not involved in writing explicit instructions to a machine but providing implicit instructions. In the old days, you had a programmer defining the input, instructions and the output. That has not changed for a computer as it still needs them, but for the programmer, instead of instructions, example input and outputs are provided directly to a computer, instructions are given to the computer to then map the input to the output with a very large number of parameters. Further instructions are given to the computer to tweak the parameters that start from random numbers and eventually provide an output matching the example values if such numbers can be found at all. 

The above is only possible due to the explosive growth of memory devices, 512 Mb RAM on pentium 4 was very powerful in 2002, now you have 128GB+ RAM on servers that hold the millions of parameters for thousands of input-output example pairs. In the past, you needed a human being to choose the parameters, tweak them, make decisions which were important or not and squeeze them into tiny storage media.

Comments

  1. AI can easily do something like doublethink and this is the beauty of the novel 1984 by George Orwell, we are getting closer and closer to that dystopia.

    ReplyDelete

Post a Comment

Popular posts from this blog

Good Game: Dice City

Another GTA Clone Back in early 2004, when the internet was new and download speeds were hitting 30 KB/s there was the thriving of world of flash games and a little programming language some of you might have known as ActionScript. Among the many games was a title called Ray part 2.  I was pretty young at the time and I had a computer with very weak specs, a Celeron processor. I could not play many of the AAA games. I would download their demos and wait at least a day for the download to finish, make sure the computer was switched on, sometimes the downloaded file would be corrupt so had to restart until download managers came around and saved me quite a few times. Ray part 2 for me was no different than actually playing GTA vice city but I could at least play it. The good thing about it were the different choices available in the game. Along the years, I would check from time to time if Ray Part 3 was released and eventually I found out that the original author had abandoned the game.

Top Android Encryption Apps

After I released my own android encryption app called Dexacrypt , I wanted to see what else was available on the market. Although, I thought my idea was unique there are already a large number of encryption apps on the market. Let's review some of them and rank them.  In this post, we will only look at message encryption apps and not advanced apps such as Surespot or SSE that provide file encryption or messaging. Meet the Contenders: Encrypt Messages And Text This app was last updated in November 2021 and has more than a 100,000 installs. Many reviews praise its simple UI and small size, however one user has specified that the latest version no longer works on Android 12. Secret Message - Encrypt/Decrypt Messages This app has a slightly larger size of 12 MB but only has 5000+ installs. The top review says and I quote, I am sorry but this is not as easy or self explanatory as it should be. You need to grab someone and hand them a phone and watch their expression. Ouch! maybe h

Murder Island

Murder Island - Old School Adventure Game One of my projects that was collecting dust, but now finally playable and available on the app store. Murder Island takes you on a humorous non-linear journey set in an Island resort. The resort is built in a western style town. In this game, you play as Detective Sherkey Romes who is commonly mistaken for world famous Dr. Datsun, his supervisor. Talk to different characters on the island and uncover clues about who could be the murderer. Run errands for locals to win their trust and solve the case. Use your inventory to combine items and exchange them for other items. GLHF!