News for hackers. Stuff that matters.
Re:Can LLMs write better code if you keep asking them to "wr... by ActivePattern on Friday January 03, 2025 @04:35PM (#42589740)
Doing a single modulo 9 operation is much faster than summing a d-digit number, which requires d modulo 10s, d divide 10s, and d sums.
Re:Can LLMs write better code if you keep asking them to "wr... by brabel on Saturday January 04, 2025 @04:04AM (#42593560)
You can do the sum by looking directly at the digits in the string, no need for module at all.
Re:Can LLMs write better code if you keep asking them to "wr... by Jensson on Saturday January 04, 2025 @05:36AM (#42593904)
Number to string is even more expensive.