fork download
  1. @echo off
  2. REM 適当なbatファイルに保存して実行
  3. setlocal enabledelayedexpansion
  4. echo 2
  5. set /a num=1,limit=3,pow=9
  6. :loop
  7. set /a num+=2,num2=3
  8. if %num% geq 10000 exit /b 0
  9. if %num% equ %pow% (
  10. set /a limit+=2
  11. set /a pow=!limit!*!limit!
  12. goto loop
  13. )
  14. :loop2
  15. if %num2% geq %limit% (
  16. echo %num%
  17. goto loop
  18. )
  19. set /a mod=%num%%%num2%,num2+=2
  20. if %mod% equ 0 goto loop
  21. goto loop2
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty