The code is not working, i am unable to under how to take the input

the code is not working, i am unable to under how to take the input

import numpy as np no=int(input()) a=[] for i in range(0,no,1): a.append(input()) #a=np.array(a) #a=a.reshape(no,1) #print(a) for k in range(0,no,1): inp=a[k] inp=inp.split(’ ‘) N=int(inp[0]) M=int(inp[1]) for i in range(N+1,M+1,1): if (i%2==0 & i%3 ==0 & i%5==0 & i%7==0): pass else: print(i, end =" ") print(’ ')

When you are workin on online ide you can’t import libraries like numpy, so don’t use them and complete the task without these libraries.

Hope this cleared your doubt. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

#import numpy as np no=int(input()) a=[] for i in range(0,no,1): a.append(input()) #a=np.array(a) #a=a.reshape(no,1) #print(a) for k in range(0,no,1): inp=a[k] #inp=input() inp=inp.split(’ ‘) N=int(inp[0]) M=int(inp[1]) for i in range(N,M+1,1): flag=False if i==1: flag=True else: for j in range (2,i,1): if i%j==0: flag=True if not flag: print(i, end =" ") print(’ ')

When you are running your code on cb.lk/ide, you need to provide the custom input first, click on input button in top bar, provide the custom input and than click on run button.

Hope this cleared your doubt. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.