PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
y = 0
numbers_array= []
for x in range (100):
y = 0
while x >1:
if x % 2 == 0:
x = x/2
y = y+1
else:
x = 3*x +1
y = y+1
if y >100:
numbers_array.append(x)
print (numbers_array)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run