implement sleeping barber
implement prime number check