Question is as follows:
- You’ve to check whether a given number is prime or not.
- Take a number “t” as input representing count of input numbers to be tested.
- Take a number “n” as input “t” number of times.
- For each input value of n, print “prime” if the number is prime and “not prime” otherwise.
This is my code:
The output is showing “not prime” regardless of the no. What’s the mistake?