YOUR INPUT CAN ONLY BE 399998 MAX (scratch list limit. i have already made the sieve not generate even numbers) Run here https://turbowarp.org/658997217?limitless&fps=60 for your input to be infinite. If it says it is not responding, just click wait.
Thanks to Eratosthenes and @deck26 Feel free to backpack the project. I MESSED SOMETHING UP not usable rn