Skip to content

Commit fe3fd7c

Browse files
committed
change in the code
1 parent 34f06ec commit fe3fd7c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Interview/Python/Solutions/140+ Basic Python Programs/Program 15/primes_in_interval.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ def __init__(self, start, end):
2222
self.end = end
2323

2424
def is_prime(self, n):
25+
"""_summary_
26+
27+
Args:
28+
n (_type_): _description_
29+
30+
Returns:
31+
_type_: _description_
32+
"""
2533
if n <= 1:
2634
return False
2735
for i in range(2, int(n**0.5) + 1):
@@ -30,6 +38,11 @@ def is_prime(self, n):
3038
return True
3139

3240
def get_primes(self):
41+
"""_summary_
42+
43+
Returns:
44+
_type_: _description_
45+
"""
3346
primes = []
3447
for num in range(self.start, self.end + 1):
3548
if self.is_prime(num):

0 commit comments

Comments
 (0)