The maximum number cannot be more than 200000. The maximum number must be bigger than the minimum number. *0 and 1 are neither prime nor composite numbers. If you want negative numbers, you can switch them to positive. Example, if you want -22 to -1, you can switch to 1 to 22.
Thanks to @ShonaYT for the tutorial on how to check if numbers are prime. (based on sqrt of number) Check out the video here: https://www.youtube.com/watch?v=XsmRQLB1f2c