Try this test case
1
20 30
You can’t test for primes by only testing for divisibility by 2 and 3.
(When posting code, either indent the whole lot by four spaces, or put three back ticks ``` on a line by themselves both before and after the code. Either of these will retain the code formatting.)
PRIME1