Log In

Shortest code

Posted on: February 23rd, 2014 by
1

Write the shortest program that outputs all prime numbers less than 1000. Your program should be in one of the following languages: C, C++, Python, Java, C#, Javascript, PhP, Ruby, Perl. The length of your code is measured in the number of characters.


One Response to Shortest code

  1. Sid Hollander had this to say about that:

    Shortest may be more the result of the selected language than the skill/talents of the programmer. A longer basic program may be a better indicate of programming/artistic/creative talent than the shortest machine language program. This should not be a weight lifting contest. More like figure skating. At least compare & measure by elected language (and post the best in each language. You know what they say about "size".


{"result":"error", "message":"You can't access this resource as it requires an 'view' access for the website id = 1."}