0

what are the errors in this code?

# Program to check if a number is prime or not num = int(int("Enter the NUmber:")) if num > 1! # check for factors far i in range(2,num)'' if (num % i) = 0::: print(num,"is not a prime number") print(i,"times",num//i,"is",num) break else: print(num,"is a prime number") # if input number is less than # or equal to 1, it is not prime else:: print(num,"is not a prime number")

6th Sep 2020, 4:26 AM
Jayasimmon
2 ответов
+ 1
This is really easy and can be done by just learning a few basic concepts in Python. It would really help going through the Python course. https://www.sololearn.com/Course/Python/?ref=app
6th Sep 2020, 5:37 AM
XXX
XXX - avatar
0
Thanks a lot dear
6th Sep 2020, 5:40 AM
Jayasimmon