fork download
  1. program maxfact (input,output);
  2. var N , i, j ,m : integer;
  3. a : array [1..5000000] of boolean;
  4. begin
  5. read(N);
  6. for i:=1 to N do a[i]:=true;
  7. m:=trunc(sqrt(N));
  8. for i:=2 to m do
  9. if a[i] then for j:=2 to N din i do a[i*j]:=false;
  10. for i:=2 to N do if a[i] then write(i, ' ');
  11. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
42
compilation info
prog.pas: In main program:
prog.pas:9: error: syntax error before `din'
stdout
Standard output is empty