uses crt;
const fi='sont.inz';
var f1:text;
n,i,kt,j:longint;
begin
clrscr;
assign(f1,fi); rewrite(f1);
write('nhap n='); readln(n);
for i:=2 to n do
begin
kt:=0;
for j:=2 to i-1 do
if i mod j=0 then kt:=1;
if kt=0 then write(f1,i:4);
end;
close(f1);
readln;
end.