<prompt> Kuzalisha kanuni ya kuangalia kama idadi fulani ni prime  <response>: Heres a Python code snippet that checks whether a given number is a prime number or not.pythondef is_primenum: Check for negative numbers, 0, or 1 if num 2: return False Check for 2 or 3 elif num 2 or num 3: return True Check if the number is divisible by 2 or 3 elif num 2 0 or num 3 0: return False Check for all other values of numbers else: i 5 w 2 while ii num: if num i 0: return False i w w 6 - w return Truenumber intinputEnter a number: if is_primenumber: printfnumber is a prime numberelse: printfnumber is not a prime numberTo use this code, simply copy and paste it into a Python interpreter or save it as a .py file and run it using Python. The program will prompt the user to enter a number, then it will print out whether the number is a prime number or not. 