Start: Nov, 12, 2017 10:00:00
2017秋Python程序设计基础培训第二次作业
End: Nov, 19, 2017 12:00:00
Time elapsed:
Time remaining:

Problem_ID: G
Result: Accepted
Time: 80ms
Memory: 24300kB
Author: lvkw
In contest: 1122

import math
a,b = list(map(int,input().split()))
for i in range(a,b+1):
    flag = 0
    for j in range(2,int(math.sqrt(i))+1):
        if(i % j ==0):
            flag = 1
    if(flag == 0):
        print (i)