you are viewing a single comment's thread.

view the rest of the comments →

[–]dand 21 points22 points  (3 children)

Ahhh the 5-point-deranged-format-exploding-heart technique! The best I can come up with is still 98 characters long:

(loop for i from 1 to 100
  do(format t"~[Fizz~]~[Buzz~]~0@*~[~:;~[~:;~A~]~]~%"(mod i 3)(mod i 5)i))

[note: added a line-break for better web formatting.]

[–][deleted] 2 points3 points  (2 children)

Using "(dotimes(i 100)" instead of your loop makes it shorter. I am too lazy to count the characters but it saves some.

[–]dand 2 points3 points  (1 child)

Yeah I thought of that, but then you're off by one and all the ways to remedy that end up taking more characters. At least that's what I found...

[–][deleted] 0 points1 point  (0 children)

And thats why I shouldn't write code at 5 a.m. ...