If take N=1, then according to the conditional statement it will break the loop and print ‘Prime’ which is not correct since 1 is neither prime nor composite, Please clarify, or am I missing something here?
If take N=1, then according to the conditional statement it will break the loop and print ‘Prime’ which is not correct since 1 is neither prime nor composite, Please clarify, or am I missing something here?