Skip to content

Instantly share code, notes, and snippets.

@mikl745
Created April 23, 2017 15:51
Show Gist options
  • Save mikl745/db62ef8509bcbd3079695a10497eeb0f to your computer and use it in GitHub Desktop.
Save mikl745/db62ef8509bcbd3079695a10497eeb0f to your computer and use it in GitHub Desktop.
w = int(input())
a = [int( input()) for x in range(w)]
y = []
for i in range(1,min(a)+1):
q = 0
for u in range(len(a)):
if a[u] % i == 0:
q = q + 1
if q == len(a):
y.append(i)
for b in range(len(y)):
print(y[b])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment