uses crt;
var a:array[1..100] of integer;
ngto:boolean;
n,i:integer;
begin
clrscr;
writeln('Nhap n');readln(n);
write('Nhap phan tu thu',i,'la');
readln(a[i]);
ngto:=false;
if n<2 then exit;
for i:=2 to round(sqrt(n)) do
begin
if n mod i = 0 then exit;
ngto:=false;
end;
writeln('cac phan tu la so nguyen to la');
for i:=1 to n do
if [COLOR="Red"]ngto<a[i]>[/COLOR] then writeln(a[i]);
readln
end.