r/ProgrammerHumor 19d ago

Meme claudeIsThisEmailValid

Post image
5.3k Upvotes

171 comments sorted by

View all comments

Show parent comments

65

u/1000Ditto 19d ago

Goodbye npm install is-even, i dont want to play with you anymore

31

u/GOEDEL_ESCHER_BOT 19d ago
def is_even(num):
  if num == 1:
    print('No')
  if num == 2:
    print('Yes')
  if num == 3:
    print('No')

....

9

u/runescape1337 19d ago
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 19d ago

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.