@Nazeli/

RapidBluevioletApplescript

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
def prime(a):
  b=0
  for i in range(1,a+1):
    if a%i == 0:
      b += 1
  if b==2:
    return True
  return False

a=input("Start")
b=input('End')
c=0
for i in range(int(a),int(b)):
  if prime(i):
    print(i)
    c+=1
print()
print('Number:' + str(c))