From: "Keith F. Lynch" <kfl at KeithLynch.net>
To: WSFA members <WSFAlist at KeithLynch.net>
Subject: [WSFA] Re: For you computer coders ...
Date: Sat, 18 Apr 2015 10:45:30 -0400 (EDT)
Reply-To: WSFA members <WSFAlist at KeithLynch.net>

mark <whitroth at 5-cent.us> wrote:
> Michael Walsh <walshmichaelj at gmail.com> wrote:
>> http://xkcd.com/1513/

> Oh, crap, I've had to deal with the code he wrote....

I bet it wasn't as bad as this short C program that I wrote as a joke
and as a challenge:

  void main(){int j,k,l[1002];for(j=1776;j;j--){for(k=0;k<1001;k++){l[k+1]+=
  10*(l[k]%j);l[k]/=j;}l[0]++;}for(j=0;j<1001;j++){printf("%d",l[j]);if(!j)
  printf("%c",46);}printf("\n");}

One point if you figure out what it does.  A thousand points if you
figure out how.  Another thousand points if you figure out how it
works perfectly even though it uses an uninitialized array.