r/programbattles • • Oct 08 '15

Any language [Any Language] Tweetable Code

Open ended challenge!

Write some code in any language that does something interesting. The only restriction is that it must fit inside a tweet (140 characters or less)

27 Upvotes

40 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Oct 09 '15

Also, here's Project Euler #1 in Racket:

lang racket

(for/fold ([sum 0]) ([n 1000]) (if (or (zero? (modulo n 3)) (zero? (modulo n 5))) (+ sum n)(+ sum 0)))