Skip to content

Commit

Permalink
Fixed hacktoberfest17#2086 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
taareek committed Jan 10, 2022
1 parent 23daa8c commit c660554
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions count-prime-number/prime_number_count.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#This Scripts will allow to count prime numbers between two integers

# Taking input from the users
min = int(input("Enter minumum number: "))
max = int(input("Enter maximum number: "))
count = 0

for num in range(min, max+1):
if num > 1:
for a in range(2, num):
if (num % a) == 0:
break
else:
# If you want to print prime numbers between two integers then comment out the next line
#print(num)
count += 1
print('Total Number: ', count)

0 comments on commit c660554

Please sign in to comment.