Prime generator

my input format is

2

1

10

3

5

but in the problem statement, it is given as-

2

1 10

3 5
what is the correct way for it?

@yashikakhurana00


for i in range(0,t):
    l=[int(x) for x in input().split()]
    primegen(l)
    print()
1 Like