Var n,i:integer;
Function nt(x:integer):boolean;
Var i:integer;
BeginNt:=false;
If x<2 then exit;
For i:=2 to trunc(sqrt(x)) doIf x mod 2=0 then exit;
Nt:=true;
BeginWrite(‘nhap n:’);
readln(N);
For i:=2 to n doIf nt(i) then write(i,’ ‘);
Readln
End.