Prime number checker

Here is my code working perfectly. But do I have to pass a test case for 1 also?

Input:
1

Output:
Not Prime

hello @yashsharma4304
yeah just add one if statement and handle this case

1 Like