HOC24
Lớp học
Môn học
Chủ đề / Chương
Bài học
uses crt;var a:array[1..100]of integer;i,n,x,dem,kt:integer;beginclrscr;repeatwrite('nhap n='); readln(n);if n<=0 then writeln('ban da nhap sai , yeu cau ban nhap lai');until n>0;if n=1 then a[1]:=2elsebegina[1]:=2;x:=1;dem:=1;repeatx:=x+2;kt:=0;for i:=2 to trunc(sqrt(x)) doif x mod i=0 then kt:=1;if kt=0 then begindem:=dem+1;a[dem]:=x;end;until dem=n;end;writeln('so nguyen to thu ',n,' la: ',x);readln;end.
D
?lỗi hình
ghi nhầm rồi )):
145 tháng
kể làm chi (= xin coin hẻ