import numpy as np
arr=np.arange(216)
arr_re=arr.reshape((6,6,6))
arr1 = arr_re[:,-1,::2]
print(arr1)
arr2=arr[arr%12==0]
print(arr2)
#Q2
arr = np.arange(2, 101)
for i in range(2, 101):
arr_p = arr_p[(arr_p==i)|(arr_p%i !=0)]
print(arr_p)