Discussion About Check prime

This is Discussion thread about Check prime

i keep failing the test case even though the code is working please help. How to apply the constraint?