Commit fbbc6c56 by BellCodeEditor

save project

parent d93c5493
Showing with 11 additions and 0 deletions
def zhishu(num):
for i in range(2,num//2+1):
if num%i==0:
return False
return True
for i in range(50,151):
if zhishu(i):
print(f'{i}是质数')
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