Commit 515f5d92 by BellCodeEditor

auto save

parent 111174bd
Showing with 11 additions and 0 deletions
#给定两个数m,n,输出m和n之间的质数
m=int(input())
n=int(input())
for i in range(m,n+1):
c=0
for j in range(1,i+1):
if i%j==0:
c+=1
if c==2:
print(i)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment