Skip to content

Latest commit

 

History

History
82 lines (43 loc) · 682 Bytes

File metadata and controls

82 lines (43 loc) · 682 Bytes

Problem Statement

Write a pthon program to display all prime numbers within a range

Note

A Prime Number is a number that cannot be made by multiplying other whole numbers. A prime number is a natural number greater than 1 that is not a product of two smaller natural numbers.

Examples:

  1. 6 is not a prime mumber because it can be made by 2×3 = 6
  2. 37 is a prime number because no other whole numbers multiply together to make it.

Sample Input

Starting number = 13

Ending number = 154

Sample Output

List of prime numbers are: 13

17

19

23

29

31

37

41

43

47

53

59

61

67

71

73

79

83

89

97

101

103

107

109

113

127

131

137

139

149

151