by putlake · 3mo ago · 0 comments
for(i=0;++i<101;console.log(i%5?f||i:f+'Buzz'))f=i%3?'':'Fizz'
Anyone can beat it? (any language accepted)from here - https://github.com/rsha256/shortest-fizzbuzz/blob/master/Per...
[(x%3<1)*'Fizz'+(x%5<1)*'Buzz'or x for x in range(1,101)]
edit: Hacker News stripped the * character. Now it's properly escaped.
for(i=100;i--;console.log(i%5?f||i:f+'Buzz'))f=i%3?'':'Fizz'
> openai.messages("write fizzbuzz in python")
Bingo
I followed that last bit of advice.
pretty sure cf-ray is cloudflare, but I think it just means the origin is 404ing
Quick! Someone call a caterer, This AI needs a biscuit NOW!!!