R2: Write a pseudo-code for checking if the number is prime or not.
Anonymous
n = int(input('Enter a number:')) ans = 'Prime' for index in range(2,n//2+1): if n%index == 0: ans = 'Not Prime' break; print(ans)
Check out your Company Bowl for anonymous work chats.