| __import__("typing").cast(__import__("typing").Callable[[__import__("typing").Iterable[__import__("typing").Tuple[__import__("typing").Callable[[int], bool], str, str]]], None], lambda x, functions: {print(f"{x} is", end=""):0, 0:{print(" " + yes, end="") if f(x) else 0:print(" " + no, end="") if not f(x) else 0for f, yes, no in functions}, print():0})(int(input("Enter number: ")), [(lambda x: x & 1, "odd", "even"), (lambda x: False if x < 2 else not any(not x % i for i in range(2, int(x**0.5) + 1)), "prime", "composite")])
|