This is a dump of the code received for the contest. I will write up some commentary later on, if anyone wants to write up commentary for their own code, let me know. (or, you know, just post it here)
46 characters, by DK64 and DarkKobold, written in Matlab
x=1:1e3;fprintf('%d ',x(~isprime(x)&mod(x,7)))
50 characters, by flagitious, written in Ruby
$><<((s=1)..1e3).select{|q|-2[q%7]>s%q%s*=q*q}*' '
56 characters, by OmnipotentEntity, written in Perl
print"1 ".join' ',grep{$_%7&&(1x$_)=~/^(11+)\1+$/}2..1e3
59 characters, by pauli, written in Ruby
$><<[1,(4..1E3).select{|i|i%7>0&&' '*i=~/^(..+?)\1+$/}]*' '
60 characters, by qFox & Bisqwit, written in PHP
1<?for(;--$j>1?1+($i%$j||$i%7&&$j=print" $i"):1e3>$j=$i++;);
61 characters, by Bisqwit, written in Perl
for(;$n++<1e3;){($s.=1)=~/^1$|^(11+?)\1+$/&&$n%7&&print"$n "
62 characters, by Tub, written in PHP
1<?for(;1001>$d=++$i;)for(;--$d>1;$i%$d||$i%7&&$d=print" $i");
69 characters, by Bisqwit, written in PHP
1<?for(;$n++<1e3;preg_match('/^(11+?)\1+$/',$s.=1)*$n%7&&print" $n");
75 characters, by Pauli, written in PHP
1<?for($n=3;$n++<1E3;)for($i=1;++$i<$n;)if($n%$i<1&&$n%7&&print" $n")break;
76 characters, by Blublu, written in Perl
$i=1;do{print"$i "if$i%7>0&$n!=$i;$i++;$n=2;$n++until$i%$n==0}while($i<1001)
79 characters, by Bisqwit, written in Javascript
for(s='1',a=n=1;n++<1e3;){s+=1;if(s.match(/^(11+?)\1+$/)&&n%7)a+=' '+n}alert(a)
79 characters, by Bisqwit, written in Ruby
(1..1000).each{|n|v=n<2;(2..n-1).each{|k|v=1if n%k<1};print n,' 'if n%7>0and v}
82 characters, by Warp, written in C (compile without optimizations)
c=1,r;p(v){r=v<c?c%v?p(v+1):c%7:c<2;}main(){while(p(2),r?printf("%i ",c)<5:1)c++;}
83 characters, by LagDotCom, written in Python
print 1,
for i in range(1001):
if i%7and[n for n in range(2,i)if not i%n]:print i,
84 characters, by Bisqwit, written in C
main(i,j){i=j=printf("1");for(;--j>1?i%j?1:i%7?j=1,printf(" %d",i):1:1e3>(j=i++););}
84 characters, by qFox, written in PHP
1<?for($i=2;$i<1001;++$i)for($j=2;$j<$i;++$j)if($i%$j<1&&$i%7>0){echo" $i";break;}?>
87 characters, by Mueen Nawaz, written in Python
print 1," ".join(str(i) for i in range(1001)if any(not i%k for k in range(2,i))and i%7)
96 characters, by Andymac, written in Python
d='1'
for i in range(1001):
if i%7>0and any([i%n==0for n in range(2,i)]):d=d+' '+str(i)
print d
96 characters, by POV-Ray Mascot, written in Haskell
k=[x|x<-[1..1000],not(all(>0)[mod x y|y<-[2..x-1]])&&mod x 7>0];main=putStr$unwords$map show$1:k
101 characters, by Bisqwit, written in QBASIC
?"1";:FOR n=1TO 1000
IF n MOD 7THEN
FOR c=2TO n\2:IF n MOD c=0THEN?STR$(n);:EXIT FOR
NEXT
END IF
NEXT
102 characters, by Bisqwit, written in GW-BASIC
1?"1";:FOR n=1TO 1000
2IF n MOD 7=0THEN 5
3p=n:FOR c=2TO p\2:IF p MOD c=0THEN?STR$(p);:p=1
4NEXT
5NEXT
105 characters, by Pauli, written in Python
o='1'
for p in filter(lambda n:n%7>0 and any([n%i<1 for i in range(2,n)]),range(1001)):o+=' %d'%p
print o
118 characters, by YtterbiJum, written in Python
import sys
w=sys.stdout.write
w('1')
for i in range(1001):
if i%7!=0 and any([i%n==0 for n in range(2,i)]):w(' %d'%i)
145 characters, by Pauli, written in C#
using System;class P{static void Main(){Console.Write(1);for(int n=2;n++<1E3;)for(int i=1;++i<n;)if(n%i<1&&n%7>0){Console.Write(" "+n);break;};}}
149 characters, by qFox, written in java
class B{public static void main(String[] a){int i,j;System.out.print(i=1);for(;i++<1e3;)for(j=1;++j<i;System.out.print(i%7>0&&i%j<1?" "+(j=i):""));}}
150 characters, by Blublu, written in java
class r{public static void main(String[]a){String s="1";for(int n,i=1;i<1001;i++)for(n=2;n<i;n++)if(i%n==0&i%7>0){s+=" "+i;n=i;}System.out.print(s);}}
260 characters, by YtterbiJum, written in Whitespace (transliterated, spaces become A and tabs become B, newline becomes C, remove the newlines I inserted to stop the page from breaking)
AAABCBCABAAAACAAABAACBBACAAACAAAACBBBAAABBBCBABBCBAAA
CAAABCAAABACBBACAAABCAAAACBBBAAABCBBBBABBCBABBCAAABCACABB
BAAABCBAAABBAAAABCBBBAAAACBBBBAABCBAAACCACABCCAABBCAAABAA
AAACBCAAAAAACBBBBCABCAAAACAAAACACABBBAAABCBAAABBAAAAACBBB
AAABBBBBABAABCBAABCBABCCACACCAABCCCC
345 characters, by AndyMac, written in LOLCODE (untested, my interpreter didn't understand LOL LOLCATS R 2, but LOLCODE is still not syntactically stable.)
HAI
CAN HAS STDIO?
I HAS A CHEEZEBURGER
I HAS A LOLCATZ
IM IN YR LOOP
UP CHEEZEBURER!!1
LOL LOLCATZ R 2
IM IN YR LOOP
IZ CHEEZEBURGER LEFTOVER LOLCATZ LIEK 0 AND CHEEZEBURGER LEFTOVER 7 NOT LIEK 0?
YARLY
VISIBLE CHEEZEBURGER
GTFO
KTHX
UP LOLCATZ!!1
IZ CHEEZEBURGER LIEK LOLCATZ? GTFO. KTHX
KTHX
IZ CHEEZEBURGER LIEK 1000? GTFO. KTHX
KTHX
KTXHBYE
502, by Pauli, uses Befunge
" 1",,4v @
>11p11g8555***`|
+ 1
1 1
g
g 7
1 %
1 v p331 _v
^ < <
2
2
.2
gp
1v p<
12 2
^ _^2 2
g g +
3 >11gv 1
3 v -1< g
2
` 2
^ _11g22g%|
^ p330<
EDIT: Postmortem submissions:
118 characters, by bkDJ, written in C++
#include <iostream>
int main(){for(int n=1,c;n<1001;++n){for(c=2;n>1&&c<n&&n%c++;){}if(n%7&&c-n){std::cout<<n<<" ";}}}