Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 181 Bytes

prime-exercise.md

File metadata and controls

11 lines (10 loc) · 181 Bytes

author: xiaomogugu

>>> def f(x):
...   for i in range(2, int(x**0.5)+1):
...     if x%i==0:return 'no'
...   return 'yes'
... 
>>> for i in range(101):
...   print(f(i))