<prompt> Lengo: Wateja wako wamejiweka kwenye safu ili kila mteja wa pili aombe chai 2, 4, 6, 8,.... Unawaorodhesha na kusambaza T-Shirt kwa kila mteja wa chai wa nambari ya kwanza. Kwa kuzingatia idadi ya wateja uliokuwa nao siku hii, umesambaza T-Shirt ngapi? Mfano: Una wateja 4: Mteja 1 anaagiza kitu Mteja 2 anaagiza chai 1 mteja wa chai Mteja 3 anaagiza kitu Mteja 4 anaagiza chai na anapata T-Shirt 2 mteja wa chai -- nambari ya kwanza 2 Jibu ni 1 Uingizaji: Mstari wa 1 : N kamili kwa idadi ya wateja uliokuwa nao.  <response>: The solution to the problem can be found using the following steps:1. Initialize a variable to count the number of T-Shirts handed out to 0.2. Create a loop to iterate through each customer number from 1 to n.3. For every even customer number, increment a counter.4. Check if the counter value is a prime number using a separate function.5. If the counter value is prime, increment the T-Shirt counter by 1.6. Return the T-Shirt counter as the output.Heres the Python code to implement this:def is_primen: if n 2: return False for i in range2, intn0.51: if n i 0: return False return Truen intinputt_shirts 0counter 0for i in range1, n1: if i 2 0: counter 1 if is_primecounter: t_shirts 1printt_shirtsYou can input the value of n on the first line and the code will output the number of T-Shirts handed out. 