Website and domain for sale: mail@discussmain.com

Napishite the program which removes all prime numbers in the range from 2 to N (N is in advance unknown). Entrance the dannyevkhodny line contains integer N. Weekend of a dannyeprogramm has to remove all prime numbers in the range from 2 to N in one line, having divided them gaps. Primeryvkhodnye dannye20vykhodnye dannye2 3 5 7 11 13 17 19

165
Var A, N, d: integer; Begin Write (N =); ReadLn(N); For N: = 2 to N do Begin d: = 0; A: = 2; Repeat if N mod A = 0 then d: = d+1; A: = A+1 Until A> Sqrt(N) +1; if d = 0 then Write (N) End End.
207
Answer add