Question: I have to make a python code to determine whether the integer is a prime number or not. However the result comes out wrong. while

I have to make a python code to determine whether the integer is a prime number or not.
However the result comes out wrong.
 I have to make a python code to determine whether the

while True numnt (input ("Insert integer )) def prime_number (num) if num0: print ("Please insert integer bigger than 2") el if num= 2: return True el if num3: return True el if num> 3: for i in range (2, num-1): if (num % i) 0: return False elif (num % i) l= 0: return True if False: pr int (num, "is not a prime number") else print (num, "is a prime number") C:MUsersAppDatawLocalMProgramsMPythonMPython36-32Wpython.exe D://.py Insert integer 135 135 is a prime number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!