$ perl -wE 'foreach my $i ( 0 .. 120 ) { next if $i % 2 or $i % 3 or $i % 4 or $i % 5; say $i; }' 0 60 120