Ideally, 2 days in Lucerne will be great. This way you can explore the Old Town highlights on day one, enjoy the nighttime in the charming city, and then on day 2 venture outside to Mt Pilatus and nearby areas. With 2 full days, you can relax without feeling rushed.