Flag 1 and flag 2

Here flag 1 and Flag 2 Are two Different name of the task that is if the number is not a prime, then it is Flag 2 in which we have to do nothing. But if the number is is prime, which means it is flag 1 , we have to print the no.