Yucca IT Interview Question

To simplify the prime number code