Дамп всех задач
This commit is contained in:
6
olymp2017/3.py
Normal file
6
olymp2017/3.py
Normal file
@@ -0,0 +1,6 @@
|
||||
def IsPrime(n):
|
||||
for i in range(2, n):
|
||||
if (n % i == 0) and (i!=1) and (i!=n):
|
||||
return False
|
||||
return True
|
||||
print(IsPrime(int(input())))
|
||||
Reference in New Issue
Block a user