- @echo off
- setlocal ENABLEDELAYEDEXPANSION
- :a
- set /a num+=1
- if %num%==1 goto a
- for %%a in (2 3) do if %num%==%%a echo %%a&goto a
- if %num%==1000 pause>nul&exit
- set /a num2=num-1
- for /l %%b in (2 1 %num2%) do (
- set /a tp=%num%%%%%b
- if !tp!==0 set tp2=a
- )
- set tp2=&if "%tp2%"=="" echo %num%
- goto a
复制代码
|