AI LLMs can't count lines in a file

Was starting to mess around with the latest LLM models and found that they're not great at counting lines in files.

I gave Gemini 2.5 flash a python script and asked it to tell me what was at line 27 and it consistently got it wrong. I tried repeatedly to prompt it the right way, but had no luck.

https://g.co/gemini/share/0276a6c7ef20

Is this something that LLM bots are still not good at? I thought they had gotten past the "strawberry" counting problems.

Here's the raw file: https://pastebin.com/FBxhZi6G


Comments URL: https://news.ycombinator.com/item?id=44176179

Points: 8

# Comments: 7

https://news.ycombinator.com/item?id=44176179

Létrehozva 18d | 2025. jún. 4. 1:40:12


Jelentkezéshez jelentkezzen be

EGYÉB POSTS Ebben a csoportban

Show HN: MMOndrian

Made a collaborative, persistent state Mondrian-style painting editor. Feedback welcome!


Comments URL: https://news.ycombinator.

2025. jún. 21. 18:10:10 | Hacker news
Tell HN: Beware confidentiality agreements that act as lifetime non competes

Just a note of warning from personal experience.

Companies don’t really need non-competes anymore. Some companies take an extremely broad interpretation of IP confidentiality, where they consid

2025. jún. 21. 18:10:08 | Hacker news