Computer Science, asked by guhasayan786, 4 months ago

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 ramapadhye
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