• LTOJ
  • Trang chủ

Tiếng Việt

Tiếng Việt
English

Đăng nhập

Đăng ký

minhtri13112006

  • Giới thiệu
  • Bài tập
  • Bài nộp
-
Rating
0
Bài đã giải
0
Tổng điểm
-
Hạng Rating
519
Hạng điểm
0
Đóng góp

p,q = input().split()
def kiem_tra(start,stop):
count = 0
for num in range (start,stop+1):
if num == 2:
count+=1
elif num < 2:
break
else:
for i in range (2,int(num**(1/2)+1)):
if num%i == 0:
break
else:
count+=1
return count
print(kiem_tra(int(p),int(q)))

«    »
Thứ 2
Thứ 3
Thứ 4
Thứ 5
Thứ 6
Thứ 7
CN
Ít
Nhiều

proudly powered by DMOJ| developed by LQDJudge team