pascalabcnet/_Presentations/2015 New Features/Programs/12_Range - 3.pas

3 lines
88 B
ObjectPascal
Raw Permalink Normal View History

2015-06-14 18:48:27 +03:00
begin
Range(2,1000).Where(x->Range(2,Round(sqrt(x))).All(i->x mod i <> 0)).Print;
end.