@echo off
REM 適当なbatファイルに保存して実行
setlocal enabledelayedexpansion
echo 2
set /a num=1,limit=3,pow=9
:loop
set /a num+=2,num2=3
if %num% geq 10000 exit /b 0
if %num% equ %pow% (
set /a limit+=2
set /a pow=!limit!*!limit!
goto loop
)
:loop2
if %num2% geq %limit% (
echo %num%
goto loop
)
set /a mod=%num%%%num2%,num2+=2
if %mod% equ 0 goto loop
goto loop2
QGVjaG8gb2ZmClJFTSDpganlvZPjgapiYXTjg5XjgqHjgqTjg6vjgavkv53lrZjjgZfjgablrp/ooYwKc2V0bG9jYWwgZW5hYmxlZGVsYXllZGV4cGFuc2lvbgplY2hvIDIKc2V0IC9hIG51bT0xLGxpbWl0PTMscG93PTkKOmxvb3AKIHNldCAvYSBudW0rPTIsbnVtMj0zCiBpZiAlbnVtJSBnZXEgMTAwMDAgZXhpdCAvYiAwCiBpZiAlbnVtJSBlcXUgJXBvdyUgKAogIHNldCAvYSBsaW1pdCs9MgogIHNldCAvYSBwb3c9IWxpbWl0ISohbGltaXQhCiAgZ290byBsb29wCiApCjpsb29wMgogaWYgJW51bTIlIGdlcSAlbGltaXQlICgKICBlY2hvICVudW0lCiAgZ290byBsb29wCiApCiBzZXQgL2EgbW9kPSVudW0lJSVudW0yJSxudW0yKz0yCiBpZiAlbW9kJSBlcXUgMCBnb3RvIGxvb3AKIGdvdG8gbG9vcDI=