Python Program to Print all Prime Numbers in an Interval

preview_player
Показать описание
A positive integer greater than 1 which has no other factors except 1 and the number itself is called a prime number.

2, 3, 5, 7,11 etc. are prime numbers as they do not have any other factors. But 4 is not prime (it is composite) since 2 x 2 = 4.
Рекомендации по теме
Комментарии
Автор

can you explain the indent of the else you have used, your code is superb, i aint getting it

No_limits