What is the problem with my code for finding whether a number is prime or not
What is the problem with my code for finding whether a number is prime or not Question: N = int(input()) flag = False if N <= 2: print(‘no’) for j in range(2, int(N**0.5)+1): if N%j == 0: flag = True if flag == False: print(‘yes’) else: print(‘no’) The logic is same everywhere I saw the …