@overfitted_dev write numbers from 1 to n (index )consider different cases when n = 4 or n = 5 (which is also given in testcase) you will see for 1th(0 you can say) to be composite you need atleast a number >= 4 the index >= 1 need a number num = [2 --- any number] to be composite
@overfitted_dev in general at 1th index you assign number 4 and index >= 1 you can assign any [ think of mapping like 2th index ko 2 se map 3rd ko 3 , 5th ko 5 .....for 4th index you already taken 4 so for 4th you can assign 1 that will be composite always