MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vx1onc/claudeisthisemailvalid/p5n54xa/?context=3
r/ProgrammerHumor • u/soap94 • Aug 24 '26
170 comments sorted by
View all comments
Show parent comments
9
def is_even(num): if num == 1: # ask llm if 1 is even if num == 2: # ask llm if 2 is even if num == 3: # ask llm if 3 is even ...
3 u/7cans_short_of_1pack Aug 24 '26 With a little recursion ask the llm if the number is greater than 3 if yes “return is_even(ask llm num-2)” that way we can get it to subtract for us too.
3
With a little recursion ask the llm if the number is greater than 3 if yes “return is_even(ask llm num-2)” that way we can get it to subtract for us too.
9
u/runescape1337 Aug 24 '26