Prime numbers are numbers that have only 2 factors: 1 and themselves. Write a python
program to print all the prime numbers from 10 to 50
Answers
Answered by
0
Answer:
I shall tell you to type any number from 10 to 50 and tell you either it is prime or not.
Explanation:
print('Prime numbers are numbers that have only 2 factors: 1 and themselves.')
pn = int(input('Enter the number : '))
if pn==11 and 13 and 17 and 19 and 23 and 29 and 31 and 37 and 41 and 43 and 47:
print('This is prime number')
else:
print('This is not prime number')
Similar questions
Math,
2 months ago
English,
2 months ago
Math,
2 months ago
Science,
4 months ago
Social Sciences,
11 months ago
CBSE BOARD X,
11 months ago
Math,
11 months ago