Your prime test consists of numbers that aren’t divisible by 2, 3 or 5. Seriously?

Try this
1
40 50

Hint 49 isn’t prime,