News for hackers. Stuff that matters.
Re:Code Llama, an AI tool for coding by kilolima on Thursday August 24, 2023 @09:36PM (#37256822)
For printing the first 10 prime numbers, there's a one line solution to this problem:

print("1, 2, 3, 5, 7, 11... and so on!

Re:Code Llama, an AI tool for coding by kordlessagain on Thursday August 24, 2023 @10:38PM (#37257316)
That code shows me a parse error.
Re:Code Llama, an AI tool for coding by tuukkah on Friday August 25, 2023 @02:19AM (#37258686)
That can't be, because primes are numbers greater than 1.
Re:Code Llama, an AI tool for coding by timjver on Friday August 25, 2023 @04:23AM (#37259370)
They said nothing about not printing any non-primes.
Re:Code Llama, an AI tool for coding by tuukkah on Friday August 25, 2023 @04:43AM (#37259491)
I suppose it's indeed possible to read the assignment as "print whatever you like as long as it includes 10 or more primes" but I'd fail you for that based on not being able to communicate with humans.
Re:Code Llama, an AI tool for coding by imglorp on Friday August 25, 2023 @07:51AM (#37260639)
This is a good point; English alone is an awful specification language. Everyone knows what you mean by "print the first ten prime numbers" but only by idiom and cultural context. This is why LLM is a good fit here, because -- when it works -- it includes all three aspects.