Unfortunately, the code was uploaded as an image, so I couldn't run itHowever, with a high probability, primeChk = True
initialization should be performed in the section just before fori
appears. Otherwise, guess what, primeChk=false
has not been initialized and reused twice since primeChk Ffalse reallocation occurred, so any i
will no longer be append(
). This is especially true if you change the variable name to something like is_i_prime_number
.
Or you can't, but try it, and if it doesn't work, copy the code into text and upload it again.
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
620 Uncaught (inpromise) Error on Electron: An object could not be cloned
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
918 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.