I don't know in any detail how ChatGPT works. But it correctly answered, "What is the largest prime number less than 10000?" (Whether by calculation or lookup, I don't know.) From there, it seemed but a small step to count primes ending in