I asked ChatGPT for a program to check if a number is prime. ChatGPT checked until the square root of the targetcorrect and efficient. The first five examples returned by Google, and Google answer box, checked up to number/2 or even the number itselfwasteful, unnecessary.