Testing Automation Rules
Test
xxxxx
Test555555
This discussion has been moved.
Program to check if a number is prime or not num = 29 To take input from the user #num = int(input("Enter a number: ")) define a flag variable flag = False if num == 1: print(num, "is not a prime number") elif num > 1: # check for factors for i in range(2, num): if (num % i) == 0: # if factor is found, set flag to True…
xxxx
It looks like you're new here. Sign in or register to get started.