Write a programme in python to veryfy a prime number
Answers
Answered by
0
The code in Python is:
a = input("Enter a Number \n")
if a > 1:
for i in range(2,a):
if (a % i) == 0:
print(a,"is not a prime number")
print(i,"times",a//i,"is",a)
break
else:
print(a,"is a prime number")
else:
print(a,"is not a prime number")
If you have Some more questions, then contact me at:
Email: [email protected]
Youtube: shorturl.at/mnB57
Answered by
1
Explanation:
Plz mark me as a brilliant plz please follow me
Attachments:
Similar questions