<prompt> Andika kazi katika Python kwamba kuangalia kama idadi iliyotolewa ni idadi ya kwanza au la.n 27  <response>: pythondef is_primen: prime numbers are greater than 1 if n 1: check for factors for i in range2, n: if n i 0: return False if any factor is found return False else: return True if no factors are found return True else: numbers less than or equal to 1 are not prime numbers return False Test the function with the given inputn 27if is_primen: printn, is a prime numberelse: printn, is not a prime number 