Possible Duplicate:
Calculating future occurences of Friday the 13th
As i sip my beer and get bored, that question came into my mind. How could find the next 13rd Friday efficiently using popular programming languages like C, Java, C#, Python, Perl, PHP even Lisp, ALGOL etc. Which code does seem shortest and smarter?